@sula-tech/webcomponents 0.2.0 → 0.3.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 (113) hide show
  1. package/dist/cjs/{index-3eac14f6.js → index-87eec792.js} +26 -3
  2. package/dist/cjs/index-87eec792.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/{sula-avatar_4.cjs.entry.js → sula-avatar_9.cjs.entry.js} +526 -9
  5. package/dist/cjs/sula-avatar_9.cjs.entry.js.map +1 -0
  6. package/dist/cjs/webcomponents.cjs.js +2 -2
  7. package/dist/collection/collection-manifest.json +5 -0
  8. package/dist/collection/components/sula-badge/model/sula-badge.model.js +23 -0
  9. package/dist/collection/components/sula-badge/model/sula-badge.model.js.map +1 -0
  10. package/dist/collection/components/sula-badge/sula-badge.css +1 -0
  11. package/dist/collection/components/sula-badge/sula-badge.js +230 -0
  12. package/dist/collection/components/sula-badge/sula-badge.js.map +1 -0
  13. package/dist/collection/components/sula-badge/sula-badge.stories.js +148 -0
  14. package/dist/collection/components/sula-badge/sula-badge.stories.js.map +1 -0
  15. package/dist/collection/components/sula-button/sula-button.css +1 -1
  16. package/dist/collection/components/sula-button/sula-button.js +1 -1
  17. package/dist/collection/components/sula-checkbox/model/sula-checkbox.model.js +6 -0
  18. package/dist/collection/components/sula-checkbox/model/sula-checkbox.model.js.map +1 -0
  19. package/dist/collection/components/sula-checkbox/sula-checkbox.css +1 -0
  20. package/dist/collection/components/sula-checkbox/sula-checkbox.js +233 -0
  21. package/dist/collection/components/sula-checkbox/sula-checkbox.js.map +1 -0
  22. package/dist/collection/components/sula-checkbox/sula-checkbox.stories.js +113 -0
  23. package/dist/collection/components/sula-checkbox/sula-checkbox.stories.js.map +1 -0
  24. package/dist/collection/components/sula-icon/sula-icon.css +1 -1
  25. package/dist/collection/components/sula-icon/sula-icon.js +1 -1
  26. package/dist/collection/components/sula-icon/sula-icon.stories.js +1 -1
  27. package/dist/collection/components/sula-icon/sula-icon.stories.js.map +1 -1
  28. package/dist/collection/components/sula-switch/model/sula-switch.model.js +6 -0
  29. package/dist/collection/components/sula-switch/model/sula-switch.model.js.map +1 -0
  30. package/dist/collection/components/sula-switch/sula-switch.css +1 -0
  31. package/dist/collection/components/sula-switch/sula-switch.js +235 -0
  32. package/dist/collection/components/sula-switch/sula-switch.js.map +1 -0
  33. package/dist/collection/components/sula-switch/sula-switch.stories.js +111 -0
  34. package/dist/collection/components/sula-switch/sula-switch.stories.js.map +1 -0
  35. package/dist/collection/components/sula-tag/model/sula-tag.model.js +28 -0
  36. package/dist/collection/components/sula-tag/model/sula-tag.model.js.map +1 -0
  37. package/dist/collection/components/sula-tag/sula-tag.css +1 -0
  38. package/dist/collection/components/sula-tag/sula-tag.js +249 -0
  39. package/dist/collection/components/sula-tag/sula-tag.js.map +1 -0
  40. package/dist/collection/components/sula-tag/sula-tag.stories.js +201 -0
  41. package/dist/collection/components/sula-tag/sula-tag.stories.js.map +1 -0
  42. package/dist/collection/components/sula-textarea/model/sula-textarea.model.js +6 -0
  43. package/dist/collection/components/sula-textarea/model/sula-textarea.model.js.map +1 -0
  44. package/dist/collection/components/sula-textarea/sula-textarea.css +1 -0
  45. package/dist/collection/components/sula-textarea/sula-textarea.js +358 -0
  46. package/dist/collection/components/sula-textarea/sula-textarea.js.map +1 -0
  47. package/dist/collection/components/sula-textarea/sula-textarea.stories.js +138 -0
  48. package/dist/collection/components/sula-textarea/sula-textarea.stories.js.map +1 -0
  49. package/dist/collection/components/sula-textfield/sula-textfield.css +1 -1
  50. package/dist/collection/components/sula-textfield/sula-textfield.js +2 -2
  51. package/dist/collection/components/sula-textfield/sula-textfield.js.map +1 -1
  52. package/dist/components/index.js +1 -1
  53. package/dist/components/{p-a07ff261.js → p-048c28d3.js} +4 -4
  54. package/dist/components/{p-a07ff261.js.map → p-048c28d3.js.map} +1 -1
  55. package/dist/components/{p-ca146b16.js → p-881c6b35.js} +25 -3
  56. package/dist/components/p-881c6b35.js.map +1 -0
  57. package/dist/components/sula-avatar.js +2 -2
  58. package/dist/components/sula-badge.d.ts +11 -0
  59. package/dist/components/sula-badge.js +154 -0
  60. package/dist/components/sula-badge.js.map +1 -0
  61. package/dist/components/sula-button.js +4 -4
  62. package/dist/components/sula-button.js.map +1 -1
  63. package/dist/components/sula-checkbox.d.ts +11 -0
  64. package/dist/components/sula-checkbox.js +109 -0
  65. package/dist/components/sula-checkbox.js.map +1 -0
  66. package/dist/components/sula-icon.js +1 -1
  67. package/dist/components/sula-switch.d.ts +11 -0
  68. package/dist/components/sula-switch.js +105 -0
  69. package/dist/components/sula-switch.js.map +1 -0
  70. package/dist/components/sula-tag.d.ts +11 -0
  71. package/dist/components/sula-tag.js +157 -0
  72. package/dist/components/sula-tag.js.map +1 -0
  73. package/dist/components/sula-textarea.d.ts +11 -0
  74. package/dist/components/sula-textarea.js +166 -0
  75. package/dist/components/sula-textarea.js.map +1 -0
  76. package/dist/components/sula-textfield.js +5 -5
  77. package/dist/components/sula-textfield.js.map +1 -1
  78. package/dist/esm/{index-1dc4ae53.js → index-aa1c5f36.js} +26 -4
  79. package/dist/esm/index-aa1c5f36.js.map +1 -0
  80. package/dist/esm/loader.js +3 -3
  81. package/dist/esm/{sula-avatar_4.entry.js → sula-avatar_9.entry.js} +522 -10
  82. package/dist/esm/sula-avatar_9.entry.js.map +1 -0
  83. package/dist/esm/webcomponents.js +3 -3
  84. package/dist/types/components/sula-badge/model/sula-badge.model.d.ts +19 -0
  85. package/dist/types/components/sula-badge/sula-badge.d.ts +33 -0
  86. package/dist/types/components/sula-badge/sula-badge.stories.d.ts +65 -0
  87. package/dist/types/components/sula-checkbox/model/sula-checkbox.model.d.ts +4 -0
  88. package/dist/types/components/sula-checkbox/sula-checkbox.d.ts +42 -0
  89. package/dist/types/components/sula-checkbox/sula-checkbox.stories.d.ts +73 -0
  90. package/dist/types/components/sula-switch/model/sula-switch.model.d.ts +4 -0
  91. package/dist/types/components/sula-switch/sula-switch.d.ts +41 -0
  92. package/dist/types/components/sula-switch/sula-switch.stories.d.ts +72 -0
  93. package/dist/types/components/sula-tag/model/sula-tag.model.d.ts +23 -0
  94. package/dist/types/components/sula-tag/sula-tag.d.ts +33 -0
  95. package/dist/types/components/sula-tag/sula-tag.stories.d.ts +82 -0
  96. package/dist/types/components/sula-textarea/model/sula-textarea.model.d.ts +4 -0
  97. package/dist/types/components/sula-textarea/sula-textarea.d.ts +65 -0
  98. package/dist/types/components/sula-textarea/sula-textarea.stories.d.ts +98 -0
  99. package/dist/types/components.d.ts +394 -0
  100. package/dist/webcomponents/{p-fbee9d79.js → p-5a36af0f.js} +272 -250
  101. package/dist/{esm/index-1dc4ae53.js.map → webcomponents/p-5a36af0f.js.map} +1 -1
  102. package/dist/webcomponents/{p-77709b3c.entry.js → p-89f57a33.entry.js} +761 -100
  103. package/dist/webcomponents/p-89f57a33.entry.js.map +1 -0
  104. package/dist/webcomponents/webcomponents.esm.js +44 -3
  105. package/dist/webcomponents/webcomponents.esm.js.map +1 -1
  106. package/package.json +2 -2
  107. package/readme.md +36 -18
  108. package/dist/cjs/index-3eac14f6.js.map +0 -1
  109. package/dist/cjs/sula-avatar_4.cjs.entry.js.map +0 -1
  110. package/dist/components/p-ca146b16.js.map +0 -1
  111. package/dist/esm/sula-avatar_4.entry.js.map +0 -1
  112. package/dist/webcomponents/p-77709b3c.entry.js.map +0 -1
  113. package/dist/webcomponents/p-fbee9d79.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-1dc4ae53.js';
2
- export { s as setNonce } from './index-1dc4ae53.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-aa1c5f36.js';
2
+ export { s as setNonce } from './index-aa1c5f36.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
@@ -16,7 +16,7 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["sula-avatar_4",[[1,"sula-avatar",{"size":[1],"imageUrl":[1,"image-url"],"text":[1],"icon":[1]}],[1,"sula-button",{"text":[1025],"icon":[1025],"appearance":[1025],"type":[1025],"size":[1025],"status":[1025],"loading":[1028],"buttonDisabled":[1028,"button-disabled"]}],[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"]]],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]]], options);
19
+ return bootstrapLazy([["sula-avatar_9",[[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-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],"labelAnimationClass":[32]},[[4,"click","handleClick"]]],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]]], options);
20
20
  });
21
21
 
22
22
  //# sourceMappingURL=webcomponents.js.map
@@ -0,0 +1,19 @@
1
+ export declare enum SulaBadgeStatus {
2
+ Default = "default",
3
+ Money = "money",
4
+ Info = "info",
5
+ Error = "error",
6
+ Success = "success",
7
+ Warning = "warning"
8
+ }
9
+ export declare enum SulaBadgeSize {
10
+ Small = "small",
11
+ Medium = "medium",
12
+ Large = "large",
13
+ Display = "display"
14
+ }
15
+ export declare enum SulaBadgeType {
16
+ Text = "text",
17
+ Icon = "icon",
18
+ Dot = "dot"
19
+ }
@@ -0,0 +1,33 @@
1
+ import { SulaBadgeSize, SulaBadgeStatus, SulaBadgeType } from './model/sula-badge.model';
2
+ export declare class SulaBadge {
3
+ hostElement: HTMLElement;
4
+ /**
5
+ * Badge status
6
+ */
7
+ status: SulaBadgeStatus;
8
+ /**
9
+ * Badge size
10
+ */
11
+ size: SulaBadgeSize;
12
+ /**
13
+ * Badge type
14
+ */
15
+ type: SulaBadgeType;
16
+ /**
17
+ * Badge text
18
+ */
19
+ text: string;
20
+ /**
21
+ * Badge icon
22
+ */
23
+ icon: string;
24
+ slotRef?: HTMLSlotElement;
25
+ hasSlotContent: boolean;
26
+ componentDidLoad(): void;
27
+ checkSlotContent(): void;
28
+ getSizeClass(): string;
29
+ getPaddingByType(): string;
30
+ getTextPaddingBySize(): string;
31
+ getStatusClass(): any;
32
+ render(): any;
33
+ }
@@ -0,0 +1,65 @@
1
+ import { SulaBadgeSize, SulaBadgeStatus, SulaBadgeType } from './model/sula-badge.model';
2
+ declare const _default: {
3
+ title: string;
4
+ tags: string[];
5
+ argTypes: {
6
+ text: {
7
+ control: string;
8
+ defaultValue: string;
9
+ description: string;
10
+ type: {
11
+ required: boolean;
12
+ };
13
+ };
14
+ icon: {
15
+ control: string;
16
+ defaultValue: string;
17
+ description: string;
18
+ type: {
19
+ required: boolean;
20
+ };
21
+ };
22
+ status: {
23
+ control: {
24
+ type: string;
25
+ };
26
+ options: SulaBadgeStatus[];
27
+ defaultValue: SulaBadgeStatus;
28
+ description: string;
29
+ type: {
30
+ required: boolean;
31
+ };
32
+ };
33
+ size: {
34
+ control: {
35
+ type: string;
36
+ };
37
+ options: SulaBadgeSize[];
38
+ defaultValue: SulaBadgeSize;
39
+ description: string;
40
+ type: {
41
+ required: boolean;
42
+ };
43
+ };
44
+ type: {
45
+ control: {
46
+ type: string;
47
+ };
48
+ options: SulaBadgeType[];
49
+ defaultValue: SulaBadgeType;
50
+ description: string;
51
+ type: {
52
+ required: boolean;
53
+ };
54
+ };
55
+ };
56
+ };
57
+ export default _default;
58
+ export declare const Default: any;
59
+ export declare const DotBadge: any;
60
+ export declare const IconBadge: any;
61
+ export declare const SuccessBadge: any;
62
+ export declare const WarningBadge: any;
63
+ export declare const LargeBadge: any;
64
+ export declare const DisplayBadge: any;
65
+ export declare const BadgeWithAvatar: any;
@@ -0,0 +1,4 @@
1
+ export declare enum SulaCheckboxType {
2
+ Default = "default",
3
+ List = "list"
4
+ }
@@ -0,0 +1,42 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { SulaCheckboxType } from './model/sula-checkbox.model';
3
+ export declare class SulaCheckbox {
4
+ /**
5
+ * Checkbox type
6
+ */
7
+ type: SulaCheckboxType;
8
+ /**
9
+ * Checkbox label
10
+ */
11
+ label?: string;
12
+ /**
13
+ * Checkbox sub title (avaible when is `list` type)
14
+ */
15
+ subTitle?: string;
16
+ /**
17
+ * Is checbox disabled
18
+ */
19
+ disabled: boolean;
20
+ /**
21
+ * Is checkbox checked
22
+ */
23
+ checked: boolean;
24
+ /**
25
+ * Event emitted when checkbox value changes.
26
+ */
27
+ valueChanged: EventEmitter<boolean>;
28
+ /**
29
+ * Event emitted when checkbox is focused.
30
+ */
31
+ focusedOn: EventEmitter<void>;
32
+ /**
33
+ * Event emitted when checkbox is focused out.
34
+ */
35
+ focusedOut: EventEmitter<void>;
36
+ isFocus: boolean;
37
+ toggle: () => void;
38
+ handleFocus: () => void;
39
+ handleBlur: () => void;
40
+ getIconColor(): "text-negative-negative-1" | "text-icon-disabled";
41
+ render(): any;
42
+ }
@@ -0,0 +1,73 @@
1
+ import { SulaCheckboxType } from './model/sula-checkbox.model';
2
+ declare const _default: {
3
+ title: string;
4
+ tags: string[];
5
+ argTypes: {
6
+ type: {
7
+ control: {
8
+ type: string;
9
+ };
10
+ options: SulaCheckboxType[];
11
+ defaultValue: SulaCheckboxType;
12
+ description: string;
13
+ type: {
14
+ required: boolean;
15
+ };
16
+ };
17
+ label: {
18
+ control: string;
19
+ defaultValue: string;
20
+ description: string;
21
+ type: {
22
+ required: boolean;
23
+ };
24
+ };
25
+ subTitle: {
26
+ control: string;
27
+ defaultValue: string;
28
+ description: string;
29
+ type: {
30
+ required: boolean;
31
+ };
32
+ };
33
+ disabled: {
34
+ control: string;
35
+ defaultValue: boolean;
36
+ description: string;
37
+ type: {
38
+ required: boolean;
39
+ };
40
+ };
41
+ checked: {
42
+ control: string;
43
+ defaultValue: boolean;
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
+ };
62
+ };
63
+ export default _default;
64
+ export declare const Default: any;
65
+ export declare const DefaultChecked: any;
66
+ export declare const DefaultDisabled: any;
67
+ export declare const DefaultCheckedDisabled: any;
68
+ export declare const DefaultWithoutLabel: any;
69
+ export declare const List: any;
70
+ export declare const ListChecked: any;
71
+ export declare const ListDisabled: any;
72
+ export declare const ListCheckedDisabled: any;
73
+ export declare const ListWithoutSubtitle: any;
@@ -0,0 +1,4 @@
1
+ export declare enum SulaSwitchType {
2
+ Default = "default",
3
+ List = "list"
4
+ }
@@ -0,0 +1,41 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { SulaSwitchType } from './model/sula-switch.model';
3
+ export declare class SulaSwitch {
4
+ /**
5
+ * Switch type
6
+ */
7
+ type: SulaSwitchType;
8
+ /**
9
+ * Is switch active
10
+ */
11
+ active: boolean;
12
+ /**
13
+ * Is switch disabled
14
+ */
15
+ disabled: boolean;
16
+ /**
17
+ * Switch label
18
+ */
19
+ label?: string;
20
+ /**
21
+ * Switch sub title (avaible when is `list` type)
22
+ */
23
+ subTitle?: string;
24
+ /**
25
+ * Event emitted when switch value changes.
26
+ */
27
+ valueChanged: EventEmitter<boolean>;
28
+ /**
29
+ * Event emitted when switch is focused.
30
+ */
31
+ focusedOn: EventEmitter<void>;
32
+ /**
33
+ * Event emitted when switch is focused out.
34
+ */
35
+ focusedOut: EventEmitter<void>;
36
+ isFocus: boolean;
37
+ handleClick: () => void;
38
+ handleFocus: () => void;
39
+ handleBlur: () => void;
40
+ render(): any;
41
+ }
@@ -0,0 +1,72 @@
1
+ import { SulaSwitchType } from './model/sula-switch.model';
2
+ declare const _default: {
3
+ title: string;
4
+ tags: string[];
5
+ argTypes: {
6
+ type: {
7
+ control: {
8
+ type: string;
9
+ };
10
+ options: SulaSwitchType[];
11
+ defaultValue: SulaSwitchType;
12
+ description: string;
13
+ type: {
14
+ required: boolean;
15
+ };
16
+ };
17
+ active: {
18
+ control: string;
19
+ defaultValue: boolean;
20
+ description: string;
21
+ type: {
22
+ required: boolean;
23
+ };
24
+ };
25
+ disabled: {
26
+ control: string;
27
+ defaultValue: boolean;
28
+ description: string;
29
+ type: {
30
+ required: boolean;
31
+ };
32
+ };
33
+ label: {
34
+ control: string;
35
+ defaultValue: string;
36
+ description: string;
37
+ type: {
38
+ required: boolean;
39
+ };
40
+ };
41
+ subTitle: {
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
+ };
62
+ };
63
+ export default _default;
64
+ export declare const Default: any;
65
+ export declare const DefaultActive: any;
66
+ export declare const DefaultDisabled: any;
67
+ export declare const DefaultActiveDisabled: any;
68
+ export declare const DefaultWithoutLabel: any;
69
+ export declare const List: any;
70
+ export declare const ListActive: any;
71
+ export declare const ListDisabled: any;
72
+ export declare const ListActiveDisabled: any;
@@ -0,0 +1,23 @@
1
+ export declare enum SulaTagSize {
2
+ Small = "small",
3
+ Default = "default"
4
+ }
5
+ export declare enum SulaTagIconStatus {
6
+ Success = "success",
7
+ Warning = "warning",
8
+ Error = "error",
9
+ Info = "info"
10
+ }
11
+ export declare enum SulaTagAppearance {
12
+ Brand = "brand",
13
+ Bordered = "bordered",
14
+ LightBlue = "light-blue",
15
+ LightBrand = "light-brand",
16
+ Negative = "negative",
17
+ OpacityGrey = "opacity-grey",
18
+ OpacityWhite = "opacity-white"
19
+ }
20
+ export declare enum SulaTagFontWeight {
21
+ Normal = "normal",
22
+ Bold = "bold"
23
+ }
@@ -0,0 +1,33 @@
1
+ import { SulaTagAppearance, SulaTagFontWeight, SulaTagIconStatus, SulaTagSize } from './model/sula-tag.model';
2
+ export declare class SulaTag {
3
+ /**
4
+ * Tag label
5
+ */
6
+ label: string;
7
+ /**
8
+ * Tag icon
9
+ */
10
+ icon: string;
11
+ /**
12
+ * Tag icon status
13
+ */
14
+ iconStatus: SulaTagIconStatus;
15
+ /**
16
+ * Tag size
17
+ */
18
+ size: SulaTagSize;
19
+ /**
20
+ * Tag appearance
21
+ */
22
+ appearance: SulaTagAppearance;
23
+ /**
24
+ * Tag font weight
25
+ */
26
+ fontWeight: SulaTagFontWeight;
27
+ getSizeClass(): string;
28
+ getAppearanceClass(): string;
29
+ getTextColorClass(): "text-text-primary" | "text-negative-negative-1" | "text-negative-negative-2";
30
+ getTextWeightClass(): string;
31
+ getIconStatusClass(): string;
32
+ render(): any;
33
+ }
@@ -0,0 +1,82 @@
1
+ import { SulaTagAppearance, SulaTagFontWeight, SulaTagIconStatus, SulaTagSize } from './model/sula-tag.model';
2
+ declare const _default: {
3
+ title: string;
4
+ tags: string[];
5
+ argTypes: {
6
+ label: {
7
+ control: string;
8
+ defaultValue: string;
9
+ description: string;
10
+ type: {
11
+ required: boolean;
12
+ };
13
+ };
14
+ icon: {
15
+ control: string;
16
+ defaultValue: string;
17
+ description: string;
18
+ type: {
19
+ required: boolean;
20
+ };
21
+ };
22
+ iconStatus: {
23
+ control: {
24
+ type: string;
25
+ };
26
+ options: SulaTagIconStatus[];
27
+ defaultValue: SulaTagIconStatus;
28
+ description: string;
29
+ type: {
30
+ required: boolean;
31
+ };
32
+ };
33
+ size: {
34
+ control: {
35
+ type: string;
36
+ };
37
+ options: SulaTagSize[];
38
+ defaultValue: SulaTagSize;
39
+ description: string;
40
+ type: {
41
+ required: boolean;
42
+ };
43
+ };
44
+ appearance: {
45
+ control: {
46
+ type: string;
47
+ };
48
+ options: SulaTagAppearance[];
49
+ defaultValue: SulaTagAppearance;
50
+ description: string;
51
+ type: {
52
+ required: boolean;
53
+ };
54
+ };
55
+ fontWeight: {
56
+ control: {
57
+ type: string;
58
+ };
59
+ options: SulaTagFontWeight[];
60
+ defaultValue: SulaTagFontWeight;
61
+ description: string;
62
+ type: {
63
+ required: boolean;
64
+ };
65
+ };
66
+ };
67
+ };
68
+ export default _default;
69
+ export declare const Default: any;
70
+ export declare const WithIcon: any;
71
+ export declare const BrandAppearance: any;
72
+ export declare const LightBlueAppearance: any;
73
+ export declare const LightBrandAppearance: any;
74
+ export declare const NegativeAppearance: any;
75
+ export declare const OpacityGreyAppearance: any;
76
+ export declare const OpacityWhiteAppearance: any;
77
+ export declare const SmallSize: any;
78
+ export declare const BoldFont: any;
79
+ export declare const WarningIcon: any;
80
+ export declare const ErrorIcon: any;
81
+ export declare const InfoIcon: any;
82
+ export declare const CompleteExample: any;
@@ -0,0 +1,4 @@
1
+ export declare enum SulaTextareaStatus {
2
+ Default = "default",
3
+ Error = "error"
4
+ }
@@ -0,0 +1,65 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { SulaTextareaStatus } from './model/sula-textarea.model';
3
+ export declare class SulaTextarea {
4
+ /**
5
+ * Value for the textarea.
6
+ */
7
+ value?: string;
8
+ /**
9
+ * The textarea status
10
+ */
11
+ status: SulaTextareaStatus;
12
+ /**
13
+ * The textarea label
14
+ */
15
+ label: string;
16
+ /**
17
+ * The textarea placeholder
18
+ */
19
+ placeholder: string;
20
+ /**
21
+ * The textarea is disabled
22
+ */
23
+ disabled: boolean;
24
+ /**
25
+ * The help text for textarea
26
+ */
27
+ helpText?: string;
28
+ /**
29
+ * The textarea max length
30
+ */
31
+ maxLength?: number;
32
+ /**
33
+ * The textarea rows (height)
34
+ */
35
+ rows: number;
36
+ /**
37
+ * Event emitted when textarea value changes.
38
+ */
39
+ valueChanged: EventEmitter<string>;
40
+ /**
41
+ * Event emitted when textarea is focused.
42
+ */
43
+ focusedOn: EventEmitter<void>;
44
+ /**
45
+ * Event emitted when textarea is focused out.
46
+ */
47
+ focusedOut: EventEmitter<void>;
48
+ isActive: boolean;
49
+ textValue: string;
50
+ textareaIsFocused: boolean;
51
+ labelAnimationClass: string;
52
+ textareaElement: HTMLTextAreaElement;
53
+ node?: HTMLElement;
54
+ handleClick(event: Event): void;
55
+ focusOnTextarea(): void;
56
+ componentWillLoad(): void;
57
+ setLabelUp(): void;
58
+ setLabelDown(): void;
59
+ handleTextareaClick: () => void;
60
+ handleTextareaChanges: (event: InputEvent) => void;
61
+ handleFocus: () => void;
62
+ handleBlur: () => void;
63
+ handleTextareaFocus: () => void;
64
+ render(): any;
65
+ }
@@ -0,0 +1,98 @@
1
+ import { SulaTextareaStatus } from './model/sula-textarea.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
+ status: {
15
+ control: {
16
+ type: string;
17
+ };
18
+ options: SulaTextareaStatus[];
19
+ defaultValue: SulaTextareaStatus;
20
+ description: string;
21
+ type: {
22
+ required: boolean;
23
+ };
24
+ };
25
+ label: {
26
+ control: string;
27
+ defaultValue: string;
28
+ description: string;
29
+ type: {
30
+ required: boolean;
31
+ };
32
+ };
33
+ placeholder: {
34
+ control: string;
35
+ defaultValue: string;
36
+ description: string;
37
+ type: {
38
+ required: boolean;
39
+ };
40
+ };
41
+ disabled: {
42
+ control: string;
43
+ defaultValue: boolean;
44
+ description: string;
45
+ type: {
46
+ required: boolean;
47
+ };
48
+ };
49
+ helpText: {
50
+ control: string;
51
+ defaultValue: string;
52
+ description: string;
53
+ type: {
54
+ required: boolean;
55
+ };
56
+ };
57
+ maxLength: {
58
+ control: string;
59
+ defaultValue: number;
60
+ description: string;
61
+ type: {
62
+ required: boolean;
63
+ };
64
+ };
65
+ rows: {
66
+ control: string;
67
+ defaultValue: number;
68
+ description: string;
69
+ type: {
70
+ required: boolean;
71
+ };
72
+ };
73
+ valueChanged: {
74
+ action: string;
75
+ description: string;
76
+ };
77
+ focusedOn: {
78
+ action: string;
79
+ description: string;
80
+ };
81
+ focusedOut: {
82
+ action: string;
83
+ description: string;
84
+ };
85
+ };
86
+ };
87
+ export default _default;
88
+ export declare const Default: any;
89
+ export declare const WithValue: any;
90
+ export declare const WithHelpText: any;
91
+ export declare const WithMaxLength: any;
92
+ export declare const LargeTextarea: any;
93
+ export declare const SmallTextarea: any;
94
+ export declare const Error: any;
95
+ export declare const Disabled: any;
96
+ export declare const WithMaxLengthAndValue: any;
97
+ export declare const ErrorWithMaxLength: any;
98
+ export declare const CompleteExample: any;