@sula-tech/webcomponents 0.14.0 → 0.15.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/loader.cjs.js +1 -1
- package/dist/cjs/{sula-avatar_21.cjs.entry.js → sula-avatar_22.cjs.entry.js} +1932 -19
- package/dist/{esm/sula-avatar_21.entry.js.map → cjs/sula-avatar_22.cjs.entry.js.map} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/sula-avatar/sula-avatar.css +1 -1
- package/dist/collection/components/sula-dropdown/sula-dropdown.js +39 -17
- package/dist/collection/components/sula-dropdown/sula-dropdown.js.map +1 -1
- package/dist/collection/components/sula-dropdown/sula-dropdown.stories.js +16 -1
- package/dist/collection/components/sula-dropdown/sula-dropdown.stories.js.map +1 -1
- package/dist/collection/components/sula-icon/sula-icon.css +1 -1
- package/dist/collection/components/sula-tooltip/model/sula-tooltip.model.js +13 -0
- package/dist/collection/components/sula-tooltip/model/sula-tooltip.model.js.map +1 -0
- package/dist/collection/components/sula-tooltip/sula-tooltip.css +1 -0
- package/dist/collection/components/sula-tooltip/sula-tooltip.js +218 -0
- package/dist/collection/components/sula-tooltip/sula-tooltip.js.map +1 -0
- package/dist/collection/components/sula-tooltip/sula-tooltip.stories.js +179 -0
- package/dist/collection/components/sula-tooltip/sula-tooltip.stories.js.map +1 -0
- package/dist/components/{p-tr2oA4pB.js → p-BESq0oqe.js} +3 -3
- package/dist/components/{p-tr2oA4pB.js.map → p-BESq0oqe.js.map} +1 -1
- package/dist/components/{p-BlyFOqde.js → p-BznR9x_k.js} +3 -3
- package/dist/components/{p-BlyFOqde.js.map → p-BznR9x_k.js.map} +1 -1
- package/dist/components/sula-avatar.js +2 -2
- package/dist/components/sula-badge.js +1 -1
- package/dist/components/sula-breadcrumb.js +1 -1
- package/dist/components/sula-button.js +1 -1
- package/dist/components/sula-checkbox.js +1 -1
- package/dist/components/sula-chip.js +1 -1
- package/dist/components/sula-dropdown.js +21 -18
- package/dist/components/sula-dropdown.js.map +1 -1
- package/dist/components/sula-icon.js +1 -1
- package/dist/components/sula-modal.js +2 -2
- package/dist/components/sula-progress-bar.js +1 -1
- package/dist/components/sula-search-bar.js +1 -1
- package/dist/components/sula-segmented-control.js +1 -1
- package/dist/components/sula-tag.js +1 -1
- package/dist/components/sula-textfield.js +1 -1
- package/dist/components/sula-tiles.js +1 -1
- package/dist/components/sula-timeline-list.js +1 -1
- package/dist/components/sula-tooltip.d.ts +11 -0
- package/dist/components/sula-tooltip.js +1946 -0
- package/dist/components/sula-tooltip.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{sula-avatar_21.entry.js → sula-avatar_22.entry.js} +1932 -20
- package/dist/esm/sula-avatar_22.entry.js.map +1 -0
- package/dist/esm/webcomponents.js +1 -1
- package/dist/types/components/sula-dropdown/sula-dropdown.d.ts +5 -2
- package/dist/types/components/sula-dropdown/sula-dropdown.stories.d.ts +8 -0
- package/dist/types/components/sula-tooltip/model/sula-tooltip.model.d.ts +10 -0
- package/dist/types/components/sula-tooltip/sula-tooltip.d.ts +40 -0
- package/dist/types/components/sula-tooltip/sula-tooltip.stories.d.ts +105 -0
- package/dist/types/components.d.ts +63 -0
- package/dist/webcomponents/{p-01cb6887.entry.js → p-6dc2ae91.entry.js} +1906 -186
- package/dist/webcomponents/p-6dc2ae91.entry.js.map +1 -0
- package/dist/webcomponents/webcomponents.esm.js +9 -3
- package/package.json +2 -1
- package/dist/cjs/sula-avatar_21.cjs.entry.js.map +0 -1
- package/dist/webcomponents/p-01cb6887.entry.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-
|
|
19
|
+
return bootstrapLazy([["sula-avatar_22",[[1,"sula-modal",{"opened":[1028],"blockBodyScroll":[1028,"block-body-scroll"],"closeOnClickOutside":[1028,"close-on-click-outside"],"type":[1],"headerIcon":[1,"header-icon"],"modalTitle":[1,"modal-title"],"promoImage":[1,"promo-image"],"subTitle":[1,"sub-title"],"primaryButtonText":[1,"primary-button-text"],"secondaryButtonText":[1,"secondary-button-text"],"slotOverflow":[1,"slot-overflow"],"isAnimating":[32],"shouldRender":[32]},null,{"opened":["handleOpenedChange"]}],[1,"sula-chip",{"text":[1025],"appearance":[1025],"disabled":[1028],"items":[1040],"selected":[1028],"isFocused":[32],"showItems":[32]},[[4,"click","handleDocumentClick"]]],[1,"sula-dropdown",{"label":[1025],"disabled":[1028],"items":[1040],"value":[1040],"searchable":[516],"menuMaxHeight":[2,"menu-max-height"],"contentMaxHeight":[2,"content-max-height"],"customContent":[516,"custom-content"],"closeOnSelect":[4,"close-on-select"],"showContent":[1540,"show-content"],"selectedItem":[32],"isFocused":[32],"searchTerm":[32],"filteredItems":[32],"openUpward":[32]},[[4,"click","handleDocumentClick"],[9,"resize","handleWindowResize"]],{"value":["handleValueChange"],"showContent":["handleShowContentChange"]}],[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-breadcrumb",{"items":[1040]}],[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-segmented-control",{"items":[1040],"type":[1025],"size":[1025],"color":[1025]}],[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],"maskPattern":[1,"mask-pattern"],"maskPatternSwitchMaxLength":[2,"mask-pattern-switch-max-length"],"inputIsOpen":[32],"textValue":[32],"showPassword":[32],"inputIsFocused":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"],"maskPattern":["watchMaskPatternHandler"],"maskPatternSwitchMaxLength":["watchMaskPatternSwitchMaxLengthHandler"]}],[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-tooltip",{"text":[1],"position":[1],"focused":[4],"trigger":[1],"isVisible":[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"],"responsive":[4],"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],"labelPadding":[32]},[[4,"click","handleClick"]],{"value":["watchValueHandler"]}],[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-loader",{"size":[1],"animationInstance":[32]}],[1,"sula-menu-select-list",{"items":[1040],"fullWidth":[4,"full-width"],"maxHeight":[2,"max-height"],"selectedValue":[16,"selected-value"]}],[0,"sula-icon",{"icon":[1],"customClass":[1,"custom-class"]}]]]], options);
|
|
20
20
|
});
|
|
21
21
|
//# sourceMappingURL=webcomponents.js.map
|
|
22
22
|
|
|
@@ -37,6 +37,10 @@ export declare class SulaDropdown {
|
|
|
37
37
|
* Close dropdown when an item is selected or content is clicked
|
|
38
38
|
*/
|
|
39
39
|
closeOnSelect: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Show or hide dropdown content
|
|
42
|
+
*/
|
|
43
|
+
showContent: boolean;
|
|
40
44
|
/**
|
|
41
45
|
* Event emitted when dropdown is clicked
|
|
42
46
|
*/
|
|
@@ -54,7 +58,6 @@ export declare class SulaDropdown {
|
|
|
54
58
|
*/
|
|
55
59
|
menuItemSelected: EventEmitter<SulaMenuListItem>;
|
|
56
60
|
selectedItem?: SulaMenuListItem;
|
|
57
|
-
showItems: boolean;
|
|
58
61
|
isFocused: boolean;
|
|
59
62
|
searchTerm: string;
|
|
60
63
|
filteredItems: SulaMenuListItem[];
|
|
@@ -62,7 +65,7 @@ export declare class SulaDropdown {
|
|
|
62
65
|
node?: HTMLElement;
|
|
63
66
|
searchInputRef?: HTMLInputElement;
|
|
64
67
|
handleValueChange(): void;
|
|
65
|
-
|
|
68
|
+
handleShowContentChange(newValue: boolean): void;
|
|
66
69
|
handleDocumentClick(event: Event): void;
|
|
67
70
|
handleWindowResize(): void;
|
|
68
71
|
calculateMenuPosition(): void;
|
|
@@ -74,6 +74,14 @@ declare const _default: {
|
|
|
74
74
|
required: boolean;
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
|
+
showContent: {
|
|
78
|
+
control: string;
|
|
79
|
+
defaultValue: boolean;
|
|
80
|
+
description: string;
|
|
81
|
+
type: {
|
|
82
|
+
required: boolean;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
77
85
|
dropdownClicked: {
|
|
78
86
|
action: string;
|
|
79
87
|
description: string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { SulaTooltipPosition, SulaTooltipTrigger } from './model/sula-tooltip.model';
|
|
2
|
+
export declare class SulaTooltip {
|
|
3
|
+
el: HTMLElement;
|
|
4
|
+
/**
|
|
5
|
+
* Tooltip hint text — max 300 characters
|
|
6
|
+
*/
|
|
7
|
+
text: string;
|
|
8
|
+
/**
|
|
9
|
+
* Tooltip position relative to trigger
|
|
10
|
+
*/
|
|
11
|
+
position: SulaTooltipPosition;
|
|
12
|
+
private readonly icon;
|
|
13
|
+
/**
|
|
14
|
+
* When true, renders a focus ring (21.5×21.5px, 1px border) around the icon.
|
|
15
|
+
*/
|
|
16
|
+
focused: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Trigger mode.
|
|
19
|
+
* - `'icon'` (default): the built-in info icon is the hover target.
|
|
20
|
+
* - `'parent'`: the icon is hidden; the component stretches to fill the
|
|
21
|
+
* parent element (which **must** have `position: relative`) and the hint
|
|
22
|
+
* appears on hover of that parent.
|
|
23
|
+
*/
|
|
24
|
+
trigger: SulaTooltipTrigger;
|
|
25
|
+
isVisible: boolean;
|
|
26
|
+
private parentEl;
|
|
27
|
+
private hintEl;
|
|
28
|
+
private triggerEl;
|
|
29
|
+
private arrowEl;
|
|
30
|
+
private popperInstance;
|
|
31
|
+
componentDidLoad(): void;
|
|
32
|
+
disconnectedCallback(): void;
|
|
33
|
+
private initPopper;
|
|
34
|
+
private get displayText();
|
|
35
|
+
private getIconClasses;
|
|
36
|
+
private getHintClasses;
|
|
37
|
+
private handleMouseEnter;
|
|
38
|
+
private handleMouseLeave;
|
|
39
|
+
render(): any;
|
|
40
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { SulaTooltipPosition, SulaTooltipTrigger } from './model/sula-tooltip.model';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
tags: string[];
|
|
5
|
+
argTypes: {
|
|
6
|
+
text: {
|
|
7
|
+
control: string;
|
|
8
|
+
description: string;
|
|
9
|
+
table: {
|
|
10
|
+
type: {
|
|
11
|
+
summary: string;
|
|
12
|
+
};
|
|
13
|
+
defaultValue: {
|
|
14
|
+
summary: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
position: {
|
|
19
|
+
control: {
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
options: SulaTooltipPosition[];
|
|
23
|
+
description: string;
|
|
24
|
+
table: {
|
|
25
|
+
type: {
|
|
26
|
+
summary: string;
|
|
27
|
+
};
|
|
28
|
+
defaultValue: {
|
|
29
|
+
summary: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
icon: {
|
|
34
|
+
control: string;
|
|
35
|
+
description: string;
|
|
36
|
+
table: {
|
|
37
|
+
type: {
|
|
38
|
+
summary: string;
|
|
39
|
+
};
|
|
40
|
+
defaultValue: {
|
|
41
|
+
summary: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
focused: {
|
|
46
|
+
control: string;
|
|
47
|
+
description: string;
|
|
48
|
+
table: {
|
|
49
|
+
type: {
|
|
50
|
+
summary: string;
|
|
51
|
+
};
|
|
52
|
+
defaultValue: {
|
|
53
|
+
summary: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
trigger: {
|
|
58
|
+
control: {
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
options: SulaTooltipTrigger[];
|
|
62
|
+
description: string;
|
|
63
|
+
table: {
|
|
64
|
+
type: {
|
|
65
|
+
summary: string;
|
|
66
|
+
};
|
|
67
|
+
defaultValue: {
|
|
68
|
+
summary: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
parameters: {
|
|
74
|
+
docs: {
|
|
75
|
+
description: {
|
|
76
|
+
component: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export default _default;
|
|
82
|
+
export declare const Playground: any;
|
|
83
|
+
export declare const Positions: {
|
|
84
|
+
(): HTMLDivElement;
|
|
85
|
+
parameters: {
|
|
86
|
+
docs: {
|
|
87
|
+
description: {
|
|
88
|
+
story: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
export declare const FocusRing: any;
|
|
94
|
+
export declare const CustomIcon: any;
|
|
95
|
+
export declare const LongText: any;
|
|
96
|
+
export declare const ParentTrigger: {
|
|
97
|
+
(): HTMLDivElement;
|
|
98
|
+
parameters: {
|
|
99
|
+
docs: {
|
|
100
|
+
description: {
|
|
101
|
+
story: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
@@ -24,6 +24,7 @@ import { SulaTextareaStatus } from "./components/sula-textarea/model/sula-textar
|
|
|
24
24
|
import { SulaTextfieldStatus, SulaTextfieldType } from "./components/sula-textfield/model/sula-textfield.model";
|
|
25
25
|
import { SulaTilesSize, SulaTilesType } from "./components/sula-tiles/model/sula-tiles.model";
|
|
26
26
|
import { SulaTimelineListItem } from "./components/sula-timeline-list/model/sula-timeline-list.model";
|
|
27
|
+
import { SulaTooltipPosition, SulaTooltipTrigger } from "./components/sula-tooltip/model/sula-tooltip.model";
|
|
27
28
|
export { SulaAvatarSize } from "./components/sula-avatar/model/sula-avatar.model";
|
|
28
29
|
export { SulaBadgeSize, SulaBadgeStatus, SulaBadgeType } from "./components/sula-badge/model/sula-badge.model";
|
|
29
30
|
export { SulaMenuBreadcrumb } from "./components/sula-breadcrumb/model/sula-breadcrumb.model";
|
|
@@ -43,6 +44,7 @@ export { SulaTextareaStatus } from "./components/sula-textarea/model/sula-textar
|
|
|
43
44
|
export { SulaTextfieldStatus, SulaTextfieldType } from "./components/sula-textfield/model/sula-textfield.model";
|
|
44
45
|
export { SulaTilesSize, SulaTilesType } from "./components/sula-tiles/model/sula-tiles.model";
|
|
45
46
|
export { SulaTimelineListItem } from "./components/sula-timeline-list/model/sula-timeline-list.model";
|
|
47
|
+
export { SulaTooltipPosition, SulaTooltipTrigger } from "./components/sula-tooltip/model/sula-tooltip.model";
|
|
46
48
|
export namespace Components {
|
|
47
49
|
interface SulaAvatar {
|
|
48
50
|
/**
|
|
@@ -240,6 +242,11 @@ export namespace Components {
|
|
|
240
242
|
* Enable search/filter functionality in dropdown
|
|
241
243
|
*/
|
|
242
244
|
"searchable"?: boolean;
|
|
245
|
+
/**
|
|
246
|
+
* Show or hide dropdown content
|
|
247
|
+
* @default false
|
|
248
|
+
*/
|
|
249
|
+
"showContent": boolean;
|
|
243
250
|
/**
|
|
244
251
|
* Value for dropdown
|
|
245
252
|
*/
|
|
@@ -622,6 +629,27 @@ export namespace Components {
|
|
|
622
629
|
*/
|
|
623
630
|
"sulaTimelineList": SulaTimelineListItem[];
|
|
624
631
|
}
|
|
632
|
+
interface SulaTooltip {
|
|
633
|
+
/**
|
|
634
|
+
* When true, renders a focus ring (21.5×21.5px, 1px border) around the icon.
|
|
635
|
+
* @default false
|
|
636
|
+
*/
|
|
637
|
+
"focused": boolean;
|
|
638
|
+
/**
|
|
639
|
+
* Tooltip position relative to trigger
|
|
640
|
+
* @default SulaTooltipPosition.Top
|
|
641
|
+
*/
|
|
642
|
+
"position": SulaTooltipPosition;
|
|
643
|
+
/**
|
|
644
|
+
* Tooltip hint text — max 300 characters
|
|
645
|
+
*/
|
|
646
|
+
"text": string;
|
|
647
|
+
/**
|
|
648
|
+
* Trigger mode. - `'icon'` (default): the built-in info icon is the hover target. - `'parent'`: the icon is hidden; the component stretches to fill the parent element (which **must** have `position: relative`) and the hint appears on hover of that parent.
|
|
649
|
+
* @default SulaTooltipTrigger.Icon
|
|
650
|
+
*/
|
|
651
|
+
"trigger": SulaTooltipTrigger;
|
|
652
|
+
}
|
|
625
653
|
}
|
|
626
654
|
export interface SulaBreadcrumbCustomEvent<T> extends CustomEvent<T> {
|
|
627
655
|
detail: T;
|
|
@@ -997,6 +1025,12 @@ declare global {
|
|
|
997
1025
|
prototype: HTMLSulaTimelineListElement;
|
|
998
1026
|
new (): HTMLSulaTimelineListElement;
|
|
999
1027
|
};
|
|
1028
|
+
interface HTMLSulaTooltipElement extends Components.SulaTooltip, HTMLStencilElement {
|
|
1029
|
+
}
|
|
1030
|
+
var HTMLSulaTooltipElement: {
|
|
1031
|
+
prototype: HTMLSulaTooltipElement;
|
|
1032
|
+
new (): HTMLSulaTooltipElement;
|
|
1033
|
+
};
|
|
1000
1034
|
interface HTMLElementTagNameMap {
|
|
1001
1035
|
"sula-avatar": HTMLSulaAvatarElement;
|
|
1002
1036
|
"sula-badge": HTMLSulaBadgeElement;
|
|
@@ -1019,6 +1053,7 @@ declare global {
|
|
|
1019
1053
|
"sula-textfield": HTMLSulaTextfieldElement;
|
|
1020
1054
|
"sula-tiles": HTMLSulaTilesElement;
|
|
1021
1055
|
"sula-timeline-list": HTMLSulaTimelineListElement;
|
|
1056
|
+
"sula-tooltip": HTMLSulaTooltipElement;
|
|
1022
1057
|
}
|
|
1023
1058
|
}
|
|
1024
1059
|
declare namespace LocalJSX {
|
|
@@ -1263,6 +1298,11 @@ declare namespace LocalJSX {
|
|
|
1263
1298
|
* Enable search/filter functionality in dropdown
|
|
1264
1299
|
*/
|
|
1265
1300
|
"searchable"?: boolean;
|
|
1301
|
+
/**
|
|
1302
|
+
* Show or hide dropdown content
|
|
1303
|
+
* @default false
|
|
1304
|
+
*/
|
|
1305
|
+
"showContent"?: boolean;
|
|
1266
1306
|
/**
|
|
1267
1307
|
* Value for dropdown
|
|
1268
1308
|
*/
|
|
@@ -1750,6 +1790,27 @@ declare namespace LocalJSX {
|
|
|
1750
1790
|
*/
|
|
1751
1791
|
"sulaTimelineList"?: SulaTimelineListItem[];
|
|
1752
1792
|
}
|
|
1793
|
+
interface SulaTooltip {
|
|
1794
|
+
/**
|
|
1795
|
+
* When true, renders a focus ring (21.5×21.5px, 1px border) around the icon.
|
|
1796
|
+
* @default false
|
|
1797
|
+
*/
|
|
1798
|
+
"focused"?: boolean;
|
|
1799
|
+
/**
|
|
1800
|
+
* Tooltip position relative to trigger
|
|
1801
|
+
* @default SulaTooltipPosition.Top
|
|
1802
|
+
*/
|
|
1803
|
+
"position"?: SulaTooltipPosition;
|
|
1804
|
+
/**
|
|
1805
|
+
* Tooltip hint text — max 300 characters
|
|
1806
|
+
*/
|
|
1807
|
+
"text"?: string;
|
|
1808
|
+
/**
|
|
1809
|
+
* Trigger mode. - `'icon'` (default): the built-in info icon is the hover target. - `'parent'`: the icon is hidden; the component stretches to fill the parent element (which **must** have `position: relative`) and the hint appears on hover of that parent.
|
|
1810
|
+
* @default SulaTooltipTrigger.Icon
|
|
1811
|
+
*/
|
|
1812
|
+
"trigger"?: SulaTooltipTrigger;
|
|
1813
|
+
}
|
|
1753
1814
|
interface IntrinsicElements {
|
|
1754
1815
|
"sula-avatar": SulaAvatar;
|
|
1755
1816
|
"sula-badge": SulaBadge;
|
|
@@ -1772,6 +1833,7 @@ declare namespace LocalJSX {
|
|
|
1772
1833
|
"sula-textfield": SulaTextfield;
|
|
1773
1834
|
"sula-tiles": SulaTiles;
|
|
1774
1835
|
"sula-timeline-list": SulaTimelineList;
|
|
1836
|
+
"sula-tooltip": SulaTooltip;
|
|
1775
1837
|
}
|
|
1776
1838
|
}
|
|
1777
1839
|
export { LocalJSX as JSX };
|
|
@@ -1799,6 +1861,7 @@ declare module "@stencil/core" {
|
|
|
1799
1861
|
"sula-textfield": LocalJSX.SulaTextfield & JSXBase.HTMLAttributes<HTMLSulaTextfieldElement>;
|
|
1800
1862
|
"sula-tiles": LocalJSX.SulaTiles & JSXBase.HTMLAttributes<HTMLSulaTilesElement>;
|
|
1801
1863
|
"sula-timeline-list": LocalJSX.SulaTimelineList & JSXBase.HTMLAttributes<HTMLSulaTimelineListElement>;
|
|
1864
|
+
"sula-tooltip": LocalJSX.SulaTooltip & JSXBase.HTMLAttributes<HTMLSulaTooltipElement>;
|
|
1802
1865
|
}
|
|
1803
1866
|
}
|
|
1804
1867
|
}
|