diff --git a/samples/inputs/tooltip/advanced/index.html b/samples/inputs/tooltip/advanced/index.html
deleted file mode 100644
index fffd1c7a1e..0000000000
--- a/samples/inputs/tooltip/advanced/index.html
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-
-
- Advanced Tooltips
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Containing list
-
-
-
- Credits
- ($2.4T)
-
-
-
-
-
- Credits
- Amount - 1,678,345
-
- Tools
- Filter
- Retail Banking
- More Info
-
-
-
-
-
- Containing chart
-
-
-
- Individual Income Taxes
- ($2.4T)
-
-
-
-
- Individual Income Taxes
-
-
- In fiscal year (FY) 2024, the largest source of federal revenue was Individual Income
- Taxes (49.3% of total revenue). So far in fiscal year 2025, the largest source of federal revenue is
- Individual Income Taxes (50.6% of total revenue).
-
-
-
- Containing badge
-
-
-
-
-
-
-
-
-
-
- Eliza Morales
-
-
-
-
-
-
-
-
-
-
-
-
-
Eliza Morales
-
Software Engineer
-
In a meeting
-
Available at 2:00 pm
-
-
-
-
- Containing icon
-
-
-
-
-
-
-
-
-
-
- Aron Watson
-
-
-
-
-
- Notifications are silenced while I focus. Please reach out only for urgent matters.
-
-
-
- Containing buttons
-
-
-
-
-
-
BTC
-
- Daily: + $45
-
-
-
-
-
-
-
BTC
-
-
-
-
Exchange Balance
-
USD 356.12.45
-
-
-
Assets Balance
-
USD 46.28.79
-
-
-
-
-
-
- Advanced sticky tooltip
-
-
-
-
-
-
BTC
-
- Daily: + 2,6%
-
-
-
-
-
-
-
BTC
-
-
-
-
Exchange Balance
-
USD 356.12.45
-
-
-
Assets Balance
-
USD 46.28.79
-
-
-
-
-
-
-
- <% if (false) { %>
-
- <% } %>
-
-
-
-
\ No newline at end of file
diff --git a/samples/inputs/tooltip/advanced/src/index.css b/samples/inputs/tooltip/advanced/src/index.css
deleted file mode 100644
index cb4afac27e..0000000000
--- a/samples/inputs/tooltip/advanced/src/index.css
+++ /dev/null
@@ -1,426 +0,0 @@
-/* shared styles are loaded from: */
-/* https://dl.infragistics.com/x/css/samples/shared.v8.css */
-
-.container {
- display: flex;
- flex-wrap: wrap;
- flex-direction: row;
- max-height: max-content;
- max-width: 680px;
- gap: 1rem;
-}
-
-.sample {
- padding: 1rem;
-}
-
-igc-tooltip::part(bottom) {
- display: none;
-}
-
-igc-tooltip::part(base) {
- color: var(--ig-primary-300-contrast);
- background-color: var(--ig-surface-50);
- border: 1px solid var(--ig-gray-300);
- box-shadow: var(--ig-elevation-1);
- max-width: unset;
-}
-
-.triggerWrapper {
- border: 1px solid var(--ig-gray-200);
- border-radius: 0.25rem;
- background-color: #f5f5f5;
-
- h3 {
- color: #000
- }
-
- .trigger {
- border: 1px solid var(--ig-gray-300);
- width: 280px;
- height: max-content;
- margin: 0px 1rem 1rem;
-
- igc-list-item {
- padding: 0.5rem 1rem;
- }
-
- p[slot="start"] {
- font-size: 0.875rem;
- line-height: 1.5rem;
- letter-spacing: 0.25px;
- font-weight: 400;
- color: var(--ig-gray-900);
- }
-
- span {
- display: block;
- font-size: 0.8125rem;
- line-height: 1.375rem;
- letter-spacing: 0.3px;
- color: var(--ig-gray-600);
- text-decoration: underline;
- }
-
- .headingWrapper {
- display: flex;
-
- igc-icon {
- --size: 1.25rem
- }
-
- h6 {
- font-size: var(--ig-h6-font-size);
- font-weight: var(--ig-h6-font-weight);
- line-height: var(--ig-h6-line-height);
- letter-spacing: var(--ig-h6-letter-spacing);
- margin: unset;
- padding-left: 0.5rem;
- color: var(--ig-gray-900);
- }
- }
-
- .secondary {
- color: var(--ig-success-500);
- font-size: 0.875rem;
- line-height: 1.25rem;
- letter-spacing: 0.25px;
- }
-
- igc-avatar {
- --size: 2.5rem;
- }
- }
-}
-
-.trigger:nth-of-type(6) {
- cursor: pointer;
-}
-
-.trigger:nth-of-type(n+5) {
- margin-left: 1.5rem;
-}
-
-.list::part(base) {
- padding: unset;
-}
-
-.list {
-
- igc-list {
- width: 300px;
- padding: 1rem;
- gap: 1rem;
- letter-spacing: 0.15px;
- border-radius: 0.25rem;
-
- h6 {
- font-size: var(--ig-h6-font-size);
- font-weight: var(--ig-h6-font-weight);
- line-height: var(--ig-h6-line-height);
- margin: unset;
- }
-
- igc-list-item {
- padding: 0.5rem 0.5rem 0.5rem 0.281rem;
- --item-text-color: var(--ig-gray-900);
- cursor: pointer;
- font-size: 1rem;
- line-height: 1.5rem;
- font-weight: 400;
- letter-spacing: 0.15px;
- }
-
- igc-list-header {
- margin-left: 0.5rem;
- }
-
- igc-icon {
- --size: 0.938rem;
- --ig-icon-color: var(--ig-gray-700);
- display: inline-block;
- vertical-align: middle;
- margin-right: 1rem;
- }
- }
-}
-
-.chart::part(base) {
- border-radius: 0.5rem;
- padding: 1rem;
- gap: 1rem;
- display: flex;
- flex-direction: column;
-}
-
-.chart {
-
- h6 {
- font-size: var(--ig-h6-font-size);
- font-weight: var(--ig-h6-font-weight);
- letter-spacing: var(--ig-h6-letter-spacing);
- line-height: var(--ig-h6-line-height);
- margin: unset;
- }
-
- igc-category-chart {
- width: 317px;
- height: 178px;
- border: 1px solid #E0E0E0;
- border-radius: 0.375rem;
- }
-
- .content {
- font-size: 0.813rem;
- font-weight: 400;
- line-height: 1.125rem;
- letter-spacing: 0.3px;
- color: var(--ig-gray-700);
- width: 317px;
- }
-
- p {
- margin: unset;
- }
-}
-
-.employee::part(base) {
- border-radius: 0.5rem;
- padding: 1rem;
- gap: 1rem;
-}
-
-.employee {
-
- igc-avatar {
- --size: 5.5rem
- }
-
- .textWrapper {
- width: 159px;
-
- p {
- margin: unset;
- }
-
- h6 {
- font-size: var(--ig-h6-font-size);
- font-weight: var(--ig-h6-font-weight);
- line-height: var(--ig-h6-line-height);
- letter-spacing: var(--ig-h6-letter-spacing);
- margin: unset;
- }
-
- p:not(.title) {
- font-size: 0.875rem;
- line-height: 1.25rem;
- font-weight: 400;
- letter-spacing: 0.25px;
- color: var(--ig-gray-700);
- }
- }
-}
-
-.avatarWrapper {
- line-height: 0;
- position: relative;
-
- igc-badge {
- --background-color: var(--ig-error-500);
- --_badge-size: 1.25rem;
- box-shadow: var(--ig-elevation-1);
- position: absolute;
- bottom: -3px;
- right: -3px;
- }
-}
-
-.multiline::part(base) {
- border-radius: 0.125rem;
- gap: 0.5rem;
- background-color: var(--ig-error-50);
- border: unset;
- padding: 0.188rem 0.5rem;
-}
-
-.multiline::part(bottom) {
- display: block;
- border-bottom-color: var(--ig-error-50);
-}
-
-.multiline {
- igc-icon {
- color: var(--ig-error-500);
- --size: 0.938rem;
- width: 1.125rem;
- height: 1.125rem;
- }
-
- p {
- font-size: 0.625rem;
- width: 158px;
- line-height: 1rem;
- letter-spacing: 0.33px;
- margin: unset;
- }
-}
-
-.btcBtn::part(base) {
- border-radius: 0.25rem;
- padding: 1rem 1rem 0.5rem 1rem;
- gap: 0.5rem;
- display: flex;
- flex-direction: column;
-}
-
-.btcBtn {
-
- igc-card {
- background-color: var(--ig-gray-50);
- padding: 0.5rem;
- border-radius: 0.125rem;
- letter-spacing: 0.15px;
- width: 268px;
- border: none;
-
- .titleWrapper {
- display: flex;
- width: 4.25rem;
- justify-content: space-between;
-
- h6 {
- font-size: var(--ig-h6-font-size);
- font-weight: var(--ig-h6-font-weight);
- line-height: var(--ig-h6-line-height);
- margin: unset;
- }
-
- igc-icon {
- --size: 1.25rem;
- width: 1.5rem;
- }
- }
-
- .detail {
- font-size: 0.75rem;
- font-weight: 600;
- line-height: 1rem;
- margin-bottom: unset;
- }
-
- .subtitle {
- font-size: 1rem;
- line-height: 1.5rem;
- margin-top: unset;
- color: var(--ig-gray-900);
- }
-
- .exchangeWrapper {
-
- .detail {
- color: var(--ig-secondary-300);
- margin: 1rem 0 0.125rem 0;
- }
- }
-
- .assetsWrapper {
-
- .detail {
- color: var(--ig-primary-300);
- margin: 0 0 0.125rem 0;
- }
-
- .subtitle {
- margin-bottom: unset;
- }
- }
- }
-
- .footerWrapper {
- width: 100%;
- gap: 0.313rem;
- display: flex;
- justify-content: flex-end;
-
- igc-button {
- font-size: 0.875rem;
- line-height: 1rem;
- letter-spacing: 0.75px;
- }
- }
-}
-
-.btc::part(base) {
- border-radius: 0.25rem;
- padding: 1rem;
- gap: 0.5rem;
- display: flex;
- justify-content: space-between;
- width: 280px;
- --ig-icon-color: var(--ig-gray-700);
-}
-
-.btc {
-
- igc-card {
- padding: 0.5rem;
- letter-spacing: 0.15px;
- border: none;
-
- .titleWrapper {
- display: flex;
- width: 4.25rem;
- justify-content: space-between;
-
- h6 {
- font-size: var(--ig-h6-font-size);
- font-weight: var(--ig-h6-font-weight);
- line-height: var(--ig-h6-line-height);
- margin: unset;
- }
-
- igc-icon {
- --size: 1.25rem;
- width: 1.5rem;
- }
- }
-
- .detail {
- font-size: 0.75rem;
- font-weight: 600;
- line-height: 1rem;
- margin-bottom: unset;
- }
-
- .subtitle {
- font-size: 1rem;
- line-height: 1.5rem;
- margin-top: unset;
- color: var(--ig-gray-900);
- }
-
- .exchangeWrapper {
-
- .detail {
- color: var(--ig-secondary-300);
- margin: 0.5rem 0 0.125rem 0;
- }
-
- .subtitle {
- margin-bottom: 0.5rem;
- }
- }
-
- .assetsWrapper {
-
- .detail {
- color: var(--ig-primary-300);
- margin: 0 0 0.125rem 0;
- }
-
- .subtitle {
- margin-bottom: unset;
- }
- }
- }
-}
\ No newline at end of file
diff --git a/samples/inputs/tooltip/advanced/src/index.ts b/samples/inputs/tooltip/advanced/src/index.ts
deleted file mode 100644
index 476b8bae15..0000000000
--- a/samples/inputs/tooltip/advanced/src/index.ts
+++ /dev/null
@@ -1,60 +0,0 @@
-import {
- defineComponents,
- IgcTooltipComponent,
- IgcAvatarComponent,
- IgcListComponent,
- registerIconFromText,
- IgcIconComponent,
- IgcBadgeComponent,
- IgcButtonComponent,
- IgcCardComponent
-} from 'igniteui-webcomponents';
-import {
- IgcCategoryChartComponent,
- IgcCategoryChartModule
-} from 'igniteui-webcomponents-charts';
-import { IncomeTaxes } from './IncomeTaxes';
-import { ModuleManager } from 'igniteui-webcomponents-core';
-import 'igniteui-webcomponents/themes/light/material.css';
-import './index.css';
-
-defineComponents(IgcTooltipComponent, IgcAvatarComponent, IgcListComponent, IgcIconComponent, IgcBadgeComponent, IgcButtonComponent, IgcCardComponent);
-
-ModuleManager.register(IgcCategoryChartModule)
-
-const dollarIcon = ' '
-const filterIcon = ' '
-const linkIcon = ' '
-const infoIcon = ' '
-const blockIcon = ' '
-const btcIcon = ' '
-
-export class AdvancedTooltips {
- private chart: IgcCategoryChartComponent
- private _bind: () => void;
-
- constructor() {
- registerIconFromText("dollar", dollarIcon);
- registerIconFromText("filter", filterIcon);
- registerIconFromText("link", linkIcon);
- registerIconFromText("info", infoIcon);
- registerIconFromText("block", blockIcon);
- registerIconFromText("btc", btcIcon);
-
- var chart = this.chart = document.getElementById('chart') as IgcCategoryChartComponent;
- this._bind = () => {
- chart.dataSource = this.incomeTaxes;
- }
- this._bind();
- }
-
- private _incomeTaxes?: IncomeTaxes;
- public get incomeTaxes(): IncomeTaxes {
- if (this._incomeTaxes == null) {
- this._incomeTaxes = new IncomeTaxes();
- }
- return this._incomeTaxes;
- }
-}
-
-new AdvancedTooltips();
\ No newline at end of file
diff --git a/samples/inputs/tooltip/placement/.prettierrc b/samples/inputs/tooltip/arrow-position/.prettierrc
similarity index 100%
rename from samples/inputs/tooltip/placement/.prettierrc
rename to samples/inputs/tooltip/arrow-position/.prettierrc
diff --git a/samples/inputs/tooltip/placement/ReadMe.md b/samples/inputs/tooltip/arrow-position/ReadMe.md
similarity index 85%
rename from samples/inputs/tooltip/placement/ReadMe.md
rename to samples/inputs/tooltip/arrow-position/ReadMe.md
index 890fc0bd1b..479354a69d 100644
--- a/samples/inputs/tooltip/placement/ReadMe.md
+++ b/samples/inputs/tooltip/arrow-position/ReadMe.md
@@ -1,7 +1,7 @@
-This folder contains implementation of Web Components application with example of Placement feature using [Tooltip](https://infragistics.com/webcomponentssite/components/general-getting-started.html) component.
+This folder contains implementation of Web Components application with example of Arrow Position feature using [Tooltip](https://infragistics.com/webcomponentssite/components/general-getting-started.html) component.
@@ -12,10 +12,10 @@ This folder contains implementation of Web Components application with example o
-
+
-
+
@@ -33,7 +33,7 @@ To set up this project locally, execute these commands:
git clone https://github.com/IgniteUI/igniteui-wc-examples.git
git checkout master
cd ./igniteui-wc-examples
-cd ./samples/inputs/tooltip/placement
+cd ./samples/inputs/tooltip/arrow-position
```
open above folder in VS Code or type:
diff --git a/samples/inputs/tooltip/arrow-position/index.html b/samples/inputs/tooltip/arrow-position/index.html
new file mode 100644
index 0000000000..65704a5c31
--- /dev/null
+++ b/samples/inputs/tooltip/arrow-position/index.html
@@ -0,0 +1,113 @@
+
+
+
+
+ Tooltip Arrow Position
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Arrow Top Start
+
+
+
+
+
+
+
Arrow Top End
+
+
+
+
+
+
+
+
Arrow Left Start
+
+
+
+
+
+
+
Arrow Left End
+
+
+
+
+
+
+
+
Arrow Right Start
+
+
+
+
+
+
+
Arrow Right End
+
+
+
+
+
+
+
+
Arrow Bottom Start
+
+
+
+
+
+
+
Arrow Bottom End
+
+
+
+
+
+
+
+
+
+
+ <% if (false) { %>
+
+ <% } %>
+
+
+
diff --git a/samples/inputs/tooltip/rich/package.json b/samples/inputs/tooltip/arrow-position/package.json
similarity index 95%
rename from samples/inputs/tooltip/rich/package.json
rename to samples/inputs/tooltip/arrow-position/package.json
index aef641783e..a3512c8b12 100644
--- a/samples/inputs/tooltip/rich/package.json
+++ b/samples/inputs/tooltip/arrow-position/package.json
@@ -1,7 +1,7 @@
{
- "name": "wc-snackbar-overview",
+ "name": "wc-tooltip-arrow-position",
"version": "1.0.0",
- "description": "This project provides example of Snackbar Overview using IgniteUI for Web Components",
+ "description": "This project provides an example of Tooltip arrow position using Ignite UI for Web Components",
"main": "src/index.ts",
"scripts": {
"build": "npm run build:prod",
diff --git a/samples/inputs/tooltip/advanced/sandbox.config.json b/samples/inputs/tooltip/arrow-position/sandbox.config.json
similarity index 100%
rename from samples/inputs/tooltip/advanced/sandbox.config.json
rename to samples/inputs/tooltip/arrow-position/sandbox.config.json
diff --git a/samples/inputs/tooltip/arrow-position/src/index.css b/samples/inputs/tooltip/arrow-position/src/index.css
new file mode 100644
index 0000000000..77c38b84d1
--- /dev/null
+++ b/samples/inputs/tooltip/arrow-position/src/index.css
@@ -0,0 +1,90 @@
+/* shared styles are loaded from: */
+/* https://dl.infragistics.com/x/css/samples/shared.v8.css */
+
+.sample {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 1rem;
+}
+
+.placements {
+ display: grid;
+ grid-template-columns: repeat(3, 12.75rem);
+ column-gap: 3.75rem;
+ row-gap: 1.5rem;
+}
+
+.placement {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 1rem;
+}
+
+.placement-label {
+ font: 400 13px / 20px "Aktiv Grotesk", sans-serif;
+ letter-spacing: 0.3px;
+ color: var(--ig-gray-600);
+}
+
+.placement-area {
+ position: relative;
+ width: 12.5rem;
+ height: 2.75rem;
+}
+
+.placement-area.left,
+.placement-area.right {
+ width: 12.75rem;
+ height: 2.5rem;
+}
+
+igc-tooltip {
+ pointer-events: none;
+}
+
+.anchor {
+ position: absolute;
+ width: 2.5rem;
+ height: 1px;
+ pointer-events: none;
+}
+
+.top .anchor {
+ top: calc(100% + 0.125rem);
+}
+
+.bottom .anchor {
+ bottom: calc(100% + 0.125rem);
+}
+
+.top .anchor.start,
+.bottom .anchor.start {
+ left: 0;
+}
+
+.top .anchor.center,
+.bottom .anchor.center {
+ left: calc(50% - 1.25rem);
+}
+
+.top .anchor.end,
+.bottom .anchor.end {
+ right: 0;
+}
+
+.left .anchor,
+.right .anchor {
+ top: 0;
+ width: 1px;
+ height: 2.5rem;
+}
+
+.left .anchor {
+ left: calc(100% + 0.125rem);
+}
+
+.right .anchor {
+ right: calc(100% + 0.125rem);
+}
diff --git a/samples/inputs/tooltip/arrow-position/src/index.ts b/samples/inputs/tooltip/arrow-position/src/index.ts
new file mode 100644
index 0000000000..2450fd1052
--- /dev/null
+++ b/samples/inputs/tooltip/arrow-position/src/index.ts
@@ -0,0 +1,17 @@
+import { defineComponents, IgcTooltipComponent } from 'igniteui-webcomponents';
+import 'igniteui-webcomponents/themes/light/bootstrap.css';
+import './index.css';
+
+defineComponents(IgcTooltipComponent);
+
+export class TooltipArrowPosition {
+ constructor() {
+ window.addEventListener('keydown', (event: KeyboardEvent) => {
+ if (event.key === 'Escape') {
+ event.stopImmediatePropagation();
+ }
+ }, true);
+ }
+}
+
+new TooltipArrowPosition();
diff --git a/samples/inputs/tooltip/advanced/tsconfig.json b/samples/inputs/tooltip/arrow-position/tsconfig.json
similarity index 100%
rename from samples/inputs/tooltip/advanced/tsconfig.json
rename to samples/inputs/tooltip/arrow-position/tsconfig.json
diff --git a/samples/inputs/tooltip/advanced/webpack.config.js b/samples/inputs/tooltip/arrow-position/webpack.config.js
similarity index 100%
rename from samples/inputs/tooltip/advanced/webpack.config.js
rename to samples/inputs/tooltip/arrow-position/webpack.config.js
diff --git a/samples/inputs/tooltip/rich/.prettierrc b/samples/inputs/tooltip/custom/.prettierrc
similarity index 100%
rename from samples/inputs/tooltip/rich/.prettierrc
rename to samples/inputs/tooltip/custom/.prettierrc
diff --git a/samples/inputs/tooltip/rich/ReadMe.md b/samples/inputs/tooltip/custom/ReadMe.md
similarity index 86%
rename from samples/inputs/tooltip/rich/ReadMe.md
rename to samples/inputs/tooltip/custom/ReadMe.md
index 765e7d883a..506843218a 100644
--- a/samples/inputs/tooltip/rich/ReadMe.md
+++ b/samples/inputs/tooltip/custom/ReadMe.md
@@ -1,7 +1,7 @@
-This folder contains implementation of Web Components application with example of Rich feature using [Tooltip](https://infragistics.com/webcomponentssite/components/general-getting-started.html) component.
+This folder contains implementation of Web Components application with example of Custom feature using [Tooltip](https://infragistics.com/webcomponentssite/components/general-getting-started.html) component.
@@ -12,10 +12,10 @@ This folder contains implementation of Web Components application with example o
-
+
-
+
@@ -33,7 +33,7 @@ To set up this project locally, execute these commands:
git clone https://github.com/IgniteUI/igniteui-wc-examples.git
git checkout master
cd ./igniteui-wc-examples
-cd ./samples/inputs/tooltip/rich
+cd ./samples/inputs/tooltip/custom
```
open above folder in VS Code or type:
diff --git a/samples/inputs/tooltip/custom/index.html b/samples/inputs/tooltip/custom/index.html
new file mode 100644
index 0000000000..b96a36d6c8
--- /dev/null
+++ b/samples/inputs/tooltip/custom/index.html
@@ -0,0 +1,96 @@
+
+
+
+
+ Tooltip Custom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Individual Income Taxes
+ ($2.4T)
+
+
+
+ Individual Income Taxes
+
+
+
+
+
+ In fiscal year (FY) 2024, the largest source of federal revenue was
+ Individual Income Taxes (49.3% of total revenue).
+
+
+
+
+
+
+
+
+
+
+ Eliza Morales
+
+
+
+
+
+
+
+
+
+
+ Eliza Morales
+ Software Engineer
+ In a meeting
+ Available at 2:00 pm
+
+
+
+
+
+
+ <% if (false) { %>
+
+ <% } %>
+
+
+
diff --git a/samples/inputs/tooltip/advanced/package.json b/samples/inputs/tooltip/custom/package.json
similarity index 95%
rename from samples/inputs/tooltip/advanced/package.json
rename to samples/inputs/tooltip/custom/package.json
index 273f9da39a..6d5d3b490e 100644
--- a/samples/inputs/tooltip/advanced/package.json
+++ b/samples/inputs/tooltip/custom/package.json
@@ -1,7 +1,7 @@
{
- "name": "wc-tooltip-advanced",
+ "name": "wc-tooltip-custom",
"version": "1.0.0",
- "description": "This project provides example of Snackbar Overview using IgniteUI for Web Components",
+ "description": "This project provides an example of Tooltip custom using Ignite UI for Web Components",
"main": "src/index.ts",
"scripts": {
"build": "npm run build:prod",
diff --git a/samples/inputs/tooltip/placement/sandbox.config.json b/samples/inputs/tooltip/custom/sandbox.config.json
similarity index 100%
rename from samples/inputs/tooltip/placement/sandbox.config.json
rename to samples/inputs/tooltip/custom/sandbox.config.json
diff --git a/samples/inputs/tooltip/advanced/src/IncomeTaxes.ts b/samples/inputs/tooltip/custom/src/IncomeTaxes.ts
similarity index 100%
rename from samples/inputs/tooltip/advanced/src/IncomeTaxes.ts
rename to samples/inputs/tooltip/custom/src/IncomeTaxes.ts
diff --git a/samples/inputs/tooltip/custom/src/index.css b/samples/inputs/tooltip/custom/src/index.css
new file mode 100644
index 0000000000..a41cc2ec5b
--- /dev/null
+++ b/samples/inputs/tooltip/custom/src/index.css
@@ -0,0 +1,142 @@
+/* shared styles are loaded from: */
+/* https://dl.infragistics.com/x/css/samples/shared.v8.css */
+
+.sample {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: flex-start;
+ justify-content: center;
+ gap: 6.25rem;
+ padding: clamp(1rem, 100vh - 25rem, 6.25rem) 1rem 1rem;
+}
+
+.trigger {
+ border: 1px solid var(--ig-gray-300);
+ border-radius: 0;
+}
+
+.trigger igc-list-item {
+ padding: 0.5rem 1rem;
+}
+
+.taxes-trigger {
+ width: 21.6875rem;
+}
+
+.employee-trigger {
+ width: 17.5rem;
+}
+
+.taxes-trigger igc-list-item::part(start) {
+ display: none;
+}
+
+.taxes-trigger span[slot="title"] {
+ font-family: var(--ig-body-2-font-family, var(--ig-font-family));
+ font-size: var(--ig-body-2-font-size);
+ font-weight: var(--ig-body-2-font-weight);
+ line-height: var(--ig-body-2-line-height);
+ letter-spacing: var(--ig-body-2-letter-spacing);
+}
+
+.amount {
+ font-size: 0.8125rem;
+ line-height: 1.125rem;
+ letter-spacing: 0.3px;
+ text-decoration: underline;
+ color: var(--ig-gray-600);
+}
+
+.avatar {
+ position: relative;
+ display: flex;
+}
+
+.avatar igc-badge {
+ position: absolute;
+ right: -0.3125rem;
+ bottom: -0.3125rem;
+}
+
+.avatar igc-icon {
+ --ig-icon-size: 0.75rem;
+
+ color: #fff;
+}
+
+.custom-tooltip::part(base) {
+ gap: 1rem;
+ padding: 1rem;
+ border: 1px solid var(--ig-gray-300);
+ border-radius: 0.5rem;
+ background: var(--ig-surface-500);
+ color: var(--ig-gray-900);
+ box-shadow: var(--ig-elevation-1);
+}
+
+.chart-tooltip::part(base) {
+ flex-direction: column;
+ width: 21.8125rem;
+}
+
+.tooltip-title {
+ font-family: var(--ig-h6-font-family, var(--ig-font-family));
+ font-size: var(--ig-h6-font-size);
+ font-weight: var(--ig-h6-font-weight);
+ line-height: var(--ig-h6-line-height);
+ letter-spacing: var(--ig-h6-letter-spacing);
+}
+
+.chart {
+ box-sizing: border-box;
+ width: 100%;
+ height: 11.125rem;
+ padding: 1.5rem 0.5rem;
+ border: 1px solid var(--ig-gray-300);
+ border-radius: 0.375rem;
+ background: var(--ig-surface-500);
+}
+
+.tooltip-description {
+ font-size: 0.8125rem;
+ font-weight: 400;
+ line-height: 1.125rem;
+ letter-spacing: 0.3px;
+ color: var(--ig-gray-700);
+}
+
+.employee-tooltip::part(base) {
+ width: 17.5rem;
+}
+
+.employee-tooltip .avatar {
+ flex-shrink: 0;
+}
+
+.employee-tooltip .avatar igc-avatar {
+ --ig-size: var(--ig-size-large);
+}
+
+.employee-tooltip .avatar igc-badge {
+ right: -0.1875rem;
+ bottom: -0.1875rem;
+}
+
+.employee-details {
+ display: flex;
+ flex-direction: column;
+ min-width: 0;
+}
+
+.employee-details .tooltip-title {
+ margin-bottom: 0.125rem;
+}
+
+.employee-details span:not(.tooltip-title) {
+ font-family: var(--ig-body-2-font-family, var(--ig-font-family));
+ font-size: var(--ig-body-2-font-size);
+ font-weight: 400;
+ line-height: var(--ig-body-2-line-height);
+ letter-spacing: var(--ig-body-2-letter-spacing);
+ color: var(--ig-gray-700);
+}
diff --git a/samples/inputs/tooltip/custom/src/index.ts b/samples/inputs/tooltip/custom/src/index.ts
new file mode 100644
index 0000000000..ea24d1ef28
--- /dev/null
+++ b/samples/inputs/tooltip/custom/src/index.ts
@@ -0,0 +1,35 @@
+import {
+ defineComponents,
+ IgcAvatarComponent,
+ IgcBadgeComponent,
+ IgcIconComponent,
+ IgcListComponent,
+ IgcListItemComponent,
+ IgcTooltipComponent,
+ registerIconFromText
+} from 'igniteui-webcomponents';
+import { IgcCategoryChartComponent, IgcCategoryChartModule } from 'igniteui-webcomponents-charts';
+import { ModuleManager } from 'igniteui-webcomponents-core';
+import { IncomeTaxes } from './IncomeTaxes';
+import 'igniteui-webcomponents/themes/light/bootstrap.css';
+import './index.css';
+
+defineComponents(IgcAvatarComponent, IgcBadgeComponent, IgcIconComponent, IgcListComponent, IgcListItemComponent, IgcTooltipComponent);
+
+ModuleManager.register(IgcCategoryChartModule);
+
+const blockIcon = ' ';
+
+registerIconFromText('block', blockIcon, 'material');
+
+export class TooltipCustom {
+ constructor() {
+ const chart = document.getElementById('chart') as IgcCategoryChartComponent;
+ const tooltip = document.getElementById('income-taxes-tooltip') as IgcTooltipComponent;
+
+ chart.dataSource = new IncomeTaxes();
+ tooltip.addEventListener('igcOpened', () => chart.notifyResized());
+ }
+}
+
+new TooltipCustom();
diff --git a/samples/inputs/tooltip/placement/tsconfig.json b/samples/inputs/tooltip/custom/tsconfig.json
similarity index 100%
rename from samples/inputs/tooltip/placement/tsconfig.json
rename to samples/inputs/tooltip/custom/tsconfig.json
diff --git a/samples/inputs/tooltip/placement/webpack.config.js b/samples/inputs/tooltip/custom/webpack.config.js
similarity index 100%
rename from samples/inputs/tooltip/placement/webpack.config.js
rename to samples/inputs/tooltip/custom/webpack.config.js
diff --git a/samples/inputs/tooltip/overview/index.html b/samples/inputs/tooltip/overview/index.html
index 3d29c90817..d158217013 100644
--- a/samples/inputs/tooltip/overview/index.html
+++ b/samples/inputs/tooltip/overview/index.html
@@ -14,11 +14,23 @@
-
-
-
-
Her name is Madelyn James
+
+
+
+ Top
+ Right
+ Left
+ Bottom
+
+ Close Button
+ Arrow
+
+
+
+ This is a tooltip message
+
+ Multiline message here.
+
@@ -28,4 +40,4 @@
<% } %>
-