@govtechsg/sgds-web-component 0.0.15 → 1.0.0-rc.1
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/base/sgds-element.d.ts +6 -0
- package/components/ActionCard/index.d.ts +1 -1
- package/components/Alert/index.d.ts +3 -1
- package/components/Alert/sgds-alert-heading.d.ts +13 -0
- package/components/Alert/sgds-alert-link.d.ts +16 -0
- package/components/Alert/sgds-alert.d.ts +15 -22
- package/components/Badge/index.d.ts +1 -1
- package/components/Badge/sgds-badge.d.ts +9 -2
- package/components/Breadcrumb/sgds-breadcrumb-item.d.ts +14 -3
- package/components/Breadcrumb/sgds-breadcrumb.d.ts +11 -1
- package/components/Button/index.d.ts +1 -1
- package/components/Card/index.d.ts +1 -1
- package/components/Checkbox/index.d.ts +1 -1
- package/components/Dropdown/index.d.ts +2 -2
- package/components/FileUpload/index.d.ts +1 -1
- package/components/Footer/index.d.ts +1 -1
- package/components/Input/index.d.ts +1 -1
- package/components/Mainnav/index.d.ts +3 -3
- package/components/Masthead/index.d.ts +1 -1
- package/components/Modal/index.d.ts +1 -1
- package/components/QuantityToggle/index.d.ts +1 -1
- package/components/Radio/index.d.ts +2 -2
- package/components/Sidenav/index.d.ts +3 -3
- package/components/Spinner/index.d.ts +1 -1
- package/components/Spinner/sgds-spinner.d.ts +11 -5
- package/components/Stepper/sgds-stepper.d.ts +4 -0
- package/components/Tab/index.d.ts +3 -3
- package/components/Textarea/index.d.ts +1 -1
- package/components/Toast/index.d.ts +2 -1
- package/components/Toast/sgds-toast-container.d.ts +16 -0
- package/components/Toast/sgds-toast.d.ts +37 -9
- package/components/Tooltip/index.d.ts +1 -1
- package/components/Tooltip/sgds-tooltip.d.ts +17 -8
- package/index.js +391 -146
- package/index.js.map +1 -1
- package/main.d.ts +25 -0
- package/package.json +1 -1
- package/react/alert/index.d.ts +4 -1
- package/react/alert-heading/index.d.ts +3 -0
- package/react/alert-link/index.d.ts +3 -0
- package/react/cjs/index.js +574 -294
- package/react/cjs/index.js.map +1 -1
- package/react/index.d.ts +3 -0
- package/react/index.js +538 -261
- package/react/index.js.map +1 -1
- package/react/toast/index.d.ts +6 -1
- package/react/toast-container/index.d.ts +3 -0
- package/umd/index.js +1165 -547
- package/umd/index.js.map +1 -1
package/base/sgds-element.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
+
/**
|
|
3
|
+
* @cssprop --sgds-{stateColor} - State colors in hexadecimal value
|
|
4
|
+
* @cssprop --sgds-{stateColor}-rgb - State colors in rgb value
|
|
5
|
+
* @cssprop --sgds-{stateColor}-{weights} - State colors with different weightage in hexadecimal value
|
|
6
|
+
* @cssprop --sgds-gray-{weights} - State colors with different weightage in hexadecimal value
|
|
7
|
+
*/
|
|
2
8
|
export default class SgdsElement extends LitElement {
|
|
3
9
|
static styles: import("lit").CSSResultGroup;
|
|
4
10
|
/** Emits a custom event with more convenient defaults. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./sgds-action-card";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import SgdsElement from "../../base/sgds-element";
|
|
2
|
+
/**
|
|
3
|
+
* @summary Alert heading is the header of the Alert component. Use it in the default slot of `sgds-alert` when required
|
|
4
|
+
*
|
|
5
|
+
* @slot default - The text content of the anchor element
|
|
6
|
+
*/
|
|
7
|
+
export declare class SgdsAlertHeading extends SgdsElement {
|
|
8
|
+
static styles: import("lit").CSSResultGroup[];
|
|
9
|
+
/** The type of header tag style for alert's heading */
|
|
10
|
+
headerTag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
11
|
+
render(): import("lit").TemplateResult;
|
|
12
|
+
}
|
|
13
|
+
export default SgdsAlertHeading;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import SgdsElement from "../../base/sgds-element";
|
|
2
|
+
/**
|
|
3
|
+
* @summary Alert link are used within the alert's message that is passed into the default slot of `<sgds-alert>`
|
|
4
|
+
*
|
|
5
|
+
* @slot default - The text content of the anchor element
|
|
6
|
+
* @cssproperty --alert-link-anchor-color - The margin-right css of icon slot, to position the gap between icon and alert message
|
|
7
|
+
*/
|
|
8
|
+
export declare class SgdsAlertLink extends SgdsElement {
|
|
9
|
+
static styles: import("lit").CSSResultGroup[];
|
|
10
|
+
/** Forwards to href attribute of anchor element */
|
|
11
|
+
href: string;
|
|
12
|
+
/** Tells the browser where to open the link */
|
|
13
|
+
target: "_blank" | "_parent" | "_self" | "_top";
|
|
14
|
+
render(): import("lit").TemplateResult;
|
|
15
|
+
}
|
|
16
|
+
export default SgdsAlertLink;
|
|
@@ -1,37 +1,30 @@
|
|
|
1
1
|
import SgdsElement from "../../base/sgds-element";
|
|
2
|
+
export type AlertVariant = "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light";
|
|
2
3
|
/**
|
|
4
|
+
* @summary Alerts provide short, timely, and relevant information for your users. It can be a simple text message or customised HTML content with paragraphs, headings and links.
|
|
3
5
|
*
|
|
4
|
-
* @
|
|
5
|
-
*
|
|
6
|
-
* @slot - The alert's main content.
|
|
7
|
-
* @slot icon - An icon to show in the alert. Works best with `<sl-icon>`.
|
|
6
|
+
* @slot default - The alert's main content.
|
|
7
|
+
* @slot icon - An icon to show in the alert. Pass in SVG elements.
|
|
8
8
|
*
|
|
9
|
-
* @event
|
|
10
|
-
* @event
|
|
11
|
-
* @event sl-hide - Emitted when the alert closes.
|
|
12
|
-
* @event sl-after-hide - Emitted after the alert closes and all animations are complete.
|
|
9
|
+
* @event sgds-show - Emitted when the alert appears.
|
|
10
|
+
* @event sgds-hide - Emitted after the alert closes.
|
|
13
11
|
*
|
|
14
|
-
* @
|
|
15
|
-
* @csspart icon - The container that wraps the optional icon.
|
|
16
|
-
* @csspart message - The container that wraps the alert's main content.
|
|
17
|
-
* @csspart close-button - The close button, an `<sl-icon-button>`.
|
|
18
|
-
* @csspart close-button__base - The close button's exported `base` part.
|
|
19
|
-
*
|
|
20
|
-
* @animation alert.show - The animation to use when showing the alert.
|
|
21
|
-
* @animation alert.hide - The animation to use when hiding the alert.
|
|
12
|
+
* @cssproperty --alert-icon-margin-right - The margin-right css of icon slot, to position the gap between icon and alert message
|
|
22
13
|
*/
|
|
23
|
-
export type AlertVariant = "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light";
|
|
24
14
|
export declare class SgdsAlert extends SgdsElement {
|
|
25
15
|
static styles: import("lit").CSSResultGroup[];
|
|
16
|
+
/** Controls the appearance of the alert */
|
|
26
17
|
show: boolean;
|
|
27
18
|
/** Enables a close button that allows the user to dismiss the alert. */
|
|
28
|
-
dismissible
|
|
19
|
+
dismissible: boolean;
|
|
29
20
|
/** The alert's theme variant. */
|
|
30
21
|
variant: AlertVariant;
|
|
31
|
-
|
|
32
|
-
alertClasses
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
/** Optional for alert wrapper. Can be used to insert any utility classes such as me-auto */
|
|
23
|
+
alertClasses: string;
|
|
24
|
+
/** Closes the alert */
|
|
25
|
+
close(): void;
|
|
26
|
+
/**@internal */
|
|
27
|
+
handleShowChange(): void;
|
|
35
28
|
render(): import("lit").TemplateResult;
|
|
36
29
|
}
|
|
37
30
|
export default SgdsAlert;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SgdsBadge
|
|
1
|
+
export { SgdsBadge } from "./sgds-badge";
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import SgdsElement from "../../base/sgds-element";
|
|
2
2
|
export type BadgeVariant = "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark";
|
|
3
|
+
/**
|
|
4
|
+
* @summary Badges can be used to highlight important bits of information such as labels, notifications & status.
|
|
5
|
+
* @slot default - slot for badge
|
|
6
|
+
*/
|
|
3
7
|
export declare class SgdsBadge extends SgdsElement {
|
|
4
8
|
static styles: import("lit").CSSResultGroup[];
|
|
9
|
+
/** One or more button variant combinations buttons may be one of a variety of visual variants such as: `primary`, `secondary`, `success`, `danger`, `warning`, `info`, `dark`, `light`, `link` */
|
|
5
10
|
variant: BadgeVariant;
|
|
6
|
-
|
|
7
|
-
|
|
11
|
+
/** Visually set badge for lesser color emphasis. */
|
|
12
|
+
isLight: boolean;
|
|
13
|
+
/** Visually set badge with rounded corners. */
|
|
14
|
+
roundedPill: boolean;
|
|
8
15
|
render(): import("lit").TemplateResult<1>;
|
|
9
16
|
}
|
|
10
17
|
export default SgdsBadge;
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import SgdsElement from "../../base/sgds-element";
|
|
2
|
+
/**
|
|
3
|
+
* @summary Breadcrumb Item are navigational links used in Breadcrumb component
|
|
4
|
+
*
|
|
5
|
+
* @slot default - The title of the item
|
|
6
|
+
* @slot separator - The individual separator of breadcrumb item can be changed here.
|
|
7
|
+
*
|
|
8
|
+
* @csspart base - The base wrapper of breadcrumb item which is a HTMLListElement.
|
|
9
|
+
* @csspart label -The label of the breadcrumb item. It is either a span or anchor element depending on href attribute
|
|
10
|
+
*/
|
|
2
11
|
export declare class SgdsBreadcrumbItem extends SgdsElement {
|
|
3
12
|
static styles: import("lit").CSSResultGroup[];
|
|
4
|
-
|
|
5
|
-
href:
|
|
6
|
-
|
|
13
|
+
/** Specifies the url path of the breadcrumb-item. When defined, the breadcrumb-items is a anchor element. When not defined, indicates that the breadcrumb item is active. In such cases, a span element is rendered. */
|
|
14
|
+
href: string;
|
|
15
|
+
/** Tells the browser where to open the link. Only used when `href` is set. */
|
|
16
|
+
target: "_blank" | "_parent" | "_self" | "_top";
|
|
17
|
+
/** The `rel` attribute to use on the link. Only used when `href` is set. */
|
|
7
18
|
rel: string;
|
|
8
19
|
render(): import("lit").TemplateResult<1>;
|
|
9
20
|
}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import SgdsElement from "../../base/sgds-element";
|
|
2
|
+
/**
|
|
3
|
+
* @summary Breadcrumbs help users to navigate and understand where they are on the current website or service.
|
|
4
|
+
*
|
|
5
|
+
* @slot default - The slot to pass in custom elements of `SgdsBreadcrumbItems`.
|
|
6
|
+
* @slot separator - Defines all the separator of `SgdsBreadcrumbItems`. Defaults to "/"
|
|
7
|
+
*
|
|
8
|
+
* @csspart base - The nav element wrapper of `SgdsBreadcrumb`
|
|
9
|
+
*/
|
|
2
10
|
export declare class SgdsBreadcrumb extends SgdsElement {
|
|
3
11
|
static styles: import("lit").CSSResultGroup[];
|
|
12
|
+
/** The aria-label of nav element within breadcrumb component. */
|
|
4
13
|
ariaLabel: string;
|
|
5
|
-
|
|
14
|
+
/**@internal */
|
|
6
15
|
defaultSlot: HTMLSlotElement;
|
|
16
|
+
/**@internal */
|
|
7
17
|
separatorSlot: HTMLSlotElement;
|
|
8
18
|
private getSeparator;
|
|
9
19
|
private handleSlotChange;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./sgds-button";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./sgds-card";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./sgds-checkbox";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from "./sgds-dropdown";
|
|
2
|
+
export * from "./sgds-dropdown-item";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SgdsFileUpload
|
|
1
|
+
export { SgdsFileUpload } from "./sgds-file-upload";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./sgds-footer";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./sgds-input";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from "./sgds-mainnav";
|
|
2
|
+
export * from "./sgds-mainnav-item";
|
|
3
|
+
export * from "./sgds-mainnav-dropdown";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./sgds-masthead";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./sgds-modal";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./sgds-quantity-toggle";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from "./sgds-radio";
|
|
2
|
+
export * from "./sgds-radio-group";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from "./sgds-sidenav";
|
|
2
|
+
export * from "./sgds-sidenav-item";
|
|
3
|
+
export * from "./sgds-sidenav-link";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SgdsSpinner
|
|
1
|
+
export { SgdsSpinner } from "./sgds-spinner";
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import SgdsElement from "../../base/sgds-element";
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
2
|
+
export type SpinnerType = "border" | "grow";
|
|
3
|
+
export type SpinnerColor = "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark";
|
|
4
|
+
/**
|
|
5
|
+
* @summary Spinners notify the users that their request is being processed.
|
|
6
|
+
*/
|
|
4
7
|
export declare class SgdsSpinner extends SgdsElement {
|
|
5
8
|
static styles: import("lit").CSSResultGroup[];
|
|
6
|
-
type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
/** The type of spinner */
|
|
10
|
+
type: SpinnerType;
|
|
11
|
+
/** The color of spinner */
|
|
12
|
+
color: SpinnerColor;
|
|
13
|
+
/** Optional for spinner wrapper. Can be used to insert any utility classes such as me-auto */
|
|
14
|
+
spinnerClasses: string;
|
|
9
15
|
render(): import("lit").TemplateResult;
|
|
10
16
|
}
|
|
11
17
|
export default SgdsSpinner;
|
|
@@ -10,6 +10,10 @@ import SgdsElement from "../../base/sgds-element";
|
|
|
10
10
|
* @event sgds-arrived - Emitted right after the activeStep has updated its state, when upcoming step has arrived and its slot are rendered.
|
|
11
11
|
* @event sgds-reset - Emitted right before the step is reset to its defaultActiveStep. Event is fired when reset method is called.
|
|
12
12
|
*
|
|
13
|
+
* @cssproperty --sgds-stepper-default-color - Sets the theme color for default stepper marker. <br>Default value `--sgds-gray-400`
|
|
14
|
+
* @cssproperty --sgds-stepper-theme-color - Sets the theme color for active, completed and clickable stepper marker. <br>Default value `--sgds-primary`
|
|
15
|
+
* @cssproperty --sgds-stepper-theme-hover-color - Sets the theme hover color for clickable stepper marker. <br>Default value `--sgds-primary-600`
|
|
16
|
+
*
|
|
13
17
|
*/
|
|
14
18
|
export declare class SgdsStepper extends SgdsElement {
|
|
15
19
|
static styles: import("lit").CSSResultGroup[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from "./sgds-tab";
|
|
2
|
+
export * from "./sgds-tabpanel";
|
|
3
|
+
export * from "./sgds-tabgroup";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./sgds-textarea";
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { SgdsToast
|
|
1
|
+
export { SgdsToast } from "./sgds-toast";
|
|
2
|
+
export { SgdsToastContainer } from "./sgds-toast-container";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import SgdsElement from "../../base/sgds-element";
|
|
2
|
+
export type ToastPosition = "top-start" | "top-center" | "top-end" | "middle-start" | "middle-center" | "middle-end" | "bottom-start" | "bottom-center" | "bottom-end";
|
|
3
|
+
/**
|
|
4
|
+
* @summary ToastContainer is the container component to position `sgds-toast` in screen. When there is multiple toasts in the container, the toast components are stacked vertically.
|
|
5
|
+
*
|
|
6
|
+
* @slot default - The slot for `sgds-toast` elements
|
|
7
|
+
*
|
|
8
|
+
* @cssproperty --toast-container-slot-elements-gap - The gap between multiple `sgds-toast` elements. Defaults to 0.5rem
|
|
9
|
+
*/
|
|
10
|
+
export declare class SgdsToastContainer extends SgdsElement {
|
|
11
|
+
static styles: import("lit").CSSResultGroup[];
|
|
12
|
+
/** Controls the position of `sgds-toast` within itself. When specified, toast container becomes position-absolute */
|
|
13
|
+
position: ToastPosition;
|
|
14
|
+
render(): import("lit").TemplateResult;
|
|
15
|
+
}
|
|
16
|
+
export default SgdsToastContainer;
|
|
@@ -1,22 +1,50 @@
|
|
|
1
1
|
import SgdsElement from "../../base/sgds-element";
|
|
2
2
|
export type ToastVariant = "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "dark" | "light";
|
|
3
|
+
/**
|
|
4
|
+
* @summary Toast allows you to convey quick messaging notifications to the user.
|
|
5
|
+
*
|
|
6
|
+
* @slot default - The content to pass into toast's body
|
|
7
|
+
* @slot icon - The slot to pass in icon to toast's header
|
|
8
|
+
* @slot duration - When required, pass in the duration since toast appeared to this slot
|
|
9
|
+
*
|
|
10
|
+
* @event sgds-show - Emitted on show.
|
|
11
|
+
* @event sgds-after-show - Emitted on show after animation has completed.
|
|
12
|
+
* @event sgds-hide - Emitted on hide.
|
|
13
|
+
* @event sgds-after-hide - Emitted on hide after animation has completed.
|
|
14
|
+
*
|
|
15
|
+
* @cssproperty --toast-icon-margin-right - The margin-right between toast's icon and title in its header. Defaults to 0.5rem
|
|
16
|
+
*/
|
|
3
17
|
export declare class SgdsToast extends SgdsElement {
|
|
4
18
|
static styles: import("lit").CSSResultGroup[];
|
|
5
|
-
|
|
19
|
+
/**@internal */
|
|
20
|
+
toast: HTMLElement;
|
|
21
|
+
/** Controls the appearance of toast */
|
|
6
22
|
show: boolean;
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
23
|
+
/** The header title of toast. It is required to assign a title to toast */
|
|
24
|
+
title: string;
|
|
25
|
+
/** Controls whether the toast has fade animation during its appearance/disappearance */
|
|
26
|
+
noAnimation: boolean;
|
|
27
|
+
/** Controls if the toast will hide itself after the delay time. Works with delay property */
|
|
28
|
+
autohide: boolean;
|
|
29
|
+
/** The amount of time taken for toast to disappear after its first render. It takes effect only when autohide is set to true */
|
|
12
30
|
delay: number;
|
|
31
|
+
/** The colour variant of toast */
|
|
13
32
|
variant: ToastVariant;
|
|
33
|
+
/** Optional for toast. Forwards to the base div wrapper of toast. Can be used to insert any utility classes such as `me-auto` */
|
|
34
|
+
toastClasses: string;
|
|
14
35
|
/** The toast variant. */
|
|
15
|
-
bg
|
|
16
|
-
closeLabel?: string;
|
|
36
|
+
bg: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "dark" | "light";
|
|
17
37
|
/**Adds CSS styling to `<Toast />` based on the defined status */
|
|
18
|
-
status
|
|
38
|
+
status: "success" | "warning" | "danger";
|
|
39
|
+
/** Shows the toast */
|
|
40
|
+
showToast(): Promise<void>;
|
|
41
|
+
/** Hide the toast */
|
|
42
|
+
hideToast(): Promise<void>;
|
|
43
|
+
/** @internal */
|
|
19
44
|
handleCloseClick(): void;
|
|
45
|
+
/**@internal */
|
|
46
|
+
handleShowChange(): Promise<void>;
|
|
47
|
+
protected firstUpdated(): void;
|
|
20
48
|
render(): import("lit").TemplateResult;
|
|
21
49
|
}
|
|
22
50
|
export default SgdsToast;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./sgds-tooltip";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import SgdsElement from "../../base/sgds-element";
|
|
2
2
|
import { Ref } from "lit/directives/ref.js";
|
|
3
3
|
import { Tooltip } from "bootstrap";
|
|
4
|
-
import * as Popper from "@popperjs/core";
|
|
5
4
|
/**
|
|
6
|
-
* @summary
|
|
7
|
-
* @slot default -
|
|
5
|
+
* @summary Tooltips display more information when users hover over, focus on, or interact with an element.
|
|
6
|
+
* @slot default - The element to target the tooltip to.
|
|
7
|
+
*
|
|
8
8
|
*/
|
|
9
9
|
export declare class SgdsTooltip extends SgdsElement {
|
|
10
10
|
static styles: import("lit").CSSResultGroup[];
|
|
@@ -12,19 +12,28 @@ export declare class SgdsTooltip extends SgdsElement {
|
|
|
12
12
|
myTooltip: Ref<HTMLElement>;
|
|
13
13
|
/**@internal */
|
|
14
14
|
bsTooltip: Tooltip;
|
|
15
|
-
/** */
|
|
15
|
+
/** The tooltip's content. Content has to be textual */
|
|
16
16
|
content: string;
|
|
17
|
+
/** The placement of tooltip relative to its target */
|
|
17
18
|
placement: "top" | "bottom" | "left" | "right";
|
|
19
|
+
/** The method to invoke the tooltip. `hover focus` is the default value which allows tooltip to be triggered via mouse hover and keyboard focus. Add `tabindex=0 `for HTMLelements that are not tabbable. For `click` method, the tooltip is trigger via mouse clicking and it instantiates with a close button */
|
|
18
20
|
trigger: "click" | "hover" | "focus" | "hover focus";
|
|
19
21
|
/**@internal */
|
|
20
|
-
closableContainer
|
|
22
|
+
private closableContainer;
|
|
21
23
|
/**@internal */
|
|
22
|
-
popperConfig
|
|
24
|
+
private popperConfig;
|
|
23
25
|
/**@internal */
|
|
24
|
-
tooltipConfig
|
|
26
|
+
private tooltipConfig;
|
|
27
|
+
/**@internal */
|
|
28
|
+
private tooltipTargetElements;
|
|
29
|
+
private _handleSlotChange;
|
|
30
|
+
attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
|
|
31
|
+
private initializeTooltip;
|
|
25
32
|
firstUpdated(): void;
|
|
26
33
|
/** Hides the Tooltip */
|
|
27
|
-
|
|
34
|
+
hide(): void;
|
|
35
|
+
/** Shows the Tooltip */
|
|
36
|
+
show(): void;
|
|
28
37
|
render(): import("lit").TemplateResult<1>;
|
|
29
38
|
}
|
|
30
39
|
export default SgdsTooltip;
|