@sula-tech/webcomponents 0.14.1 → 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} +1914 -4
- package/dist/cjs/sula-avatar_22.cjs.entry.js.map +1 -0
- 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-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 +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} +1914 -5
- package/dist/esm/sula-avatar_22.entry.js.map +1 -0
- package/dist/esm/webcomponents.js +1 -1
- 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 +53 -0
- package/dist/webcomponents/{p-a7141407.entry.js → p-6dc2ae91.entry.js} +1883 -165
- package/dist/webcomponents/p-6dc2ae91.entry.js.map +1 -0
- package/dist/webcomponents/webcomponents.esm.js +7 -1
- package/package.json +2 -1
- package/dist/cjs/sula-avatar_21.cjs.entry.js.map +0 -1
- package/dist/esm/sula-avatar_21.entry.js.map +0 -1
- package/dist/webcomponents/p-a7141407.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
|
|
|
@@ -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
|
/**
|
|
@@ -627,6 +629,27 @@ export namespace Components {
|
|
|
627
629
|
*/
|
|
628
630
|
"sulaTimelineList": SulaTimelineListItem[];
|
|
629
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
|
+
}
|
|
630
653
|
}
|
|
631
654
|
export interface SulaBreadcrumbCustomEvent<T> extends CustomEvent<T> {
|
|
632
655
|
detail: T;
|
|
@@ -1002,6 +1025,12 @@ declare global {
|
|
|
1002
1025
|
prototype: HTMLSulaTimelineListElement;
|
|
1003
1026
|
new (): HTMLSulaTimelineListElement;
|
|
1004
1027
|
};
|
|
1028
|
+
interface HTMLSulaTooltipElement extends Components.SulaTooltip, HTMLStencilElement {
|
|
1029
|
+
}
|
|
1030
|
+
var HTMLSulaTooltipElement: {
|
|
1031
|
+
prototype: HTMLSulaTooltipElement;
|
|
1032
|
+
new (): HTMLSulaTooltipElement;
|
|
1033
|
+
};
|
|
1005
1034
|
interface HTMLElementTagNameMap {
|
|
1006
1035
|
"sula-avatar": HTMLSulaAvatarElement;
|
|
1007
1036
|
"sula-badge": HTMLSulaBadgeElement;
|
|
@@ -1024,6 +1053,7 @@ declare global {
|
|
|
1024
1053
|
"sula-textfield": HTMLSulaTextfieldElement;
|
|
1025
1054
|
"sula-tiles": HTMLSulaTilesElement;
|
|
1026
1055
|
"sula-timeline-list": HTMLSulaTimelineListElement;
|
|
1056
|
+
"sula-tooltip": HTMLSulaTooltipElement;
|
|
1027
1057
|
}
|
|
1028
1058
|
}
|
|
1029
1059
|
declare namespace LocalJSX {
|
|
@@ -1760,6 +1790,27 @@ declare namespace LocalJSX {
|
|
|
1760
1790
|
*/
|
|
1761
1791
|
"sulaTimelineList"?: SulaTimelineListItem[];
|
|
1762
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
|
+
}
|
|
1763
1814
|
interface IntrinsicElements {
|
|
1764
1815
|
"sula-avatar": SulaAvatar;
|
|
1765
1816
|
"sula-badge": SulaBadge;
|
|
@@ -1782,6 +1833,7 @@ declare namespace LocalJSX {
|
|
|
1782
1833
|
"sula-textfield": SulaTextfield;
|
|
1783
1834
|
"sula-tiles": SulaTiles;
|
|
1784
1835
|
"sula-timeline-list": SulaTimelineList;
|
|
1836
|
+
"sula-tooltip": SulaTooltip;
|
|
1785
1837
|
}
|
|
1786
1838
|
}
|
|
1787
1839
|
export { LocalJSX as JSX };
|
|
@@ -1809,6 +1861,7 @@ declare module "@stencil/core" {
|
|
|
1809
1861
|
"sula-textfield": LocalJSX.SulaTextfield & JSXBase.HTMLAttributes<HTMLSulaTextfieldElement>;
|
|
1810
1862
|
"sula-tiles": LocalJSX.SulaTiles & JSXBase.HTMLAttributes<HTMLSulaTilesElement>;
|
|
1811
1863
|
"sula-timeline-list": LocalJSX.SulaTimelineList & JSXBase.HTMLAttributes<HTMLSulaTimelineListElement>;
|
|
1864
|
+
"sula-tooltip": LocalJSX.SulaTooltip & JSXBase.HTMLAttributes<HTMLSulaTooltipElement>;
|
|
1812
1865
|
}
|
|
1813
1866
|
}
|
|
1814
1867
|
}
|