Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tooltip): swapped to use floatingui #2037

Merged
merged 181 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
181 commits
Select commit Hold shift + click to select a range
6c4eed5
feat: switch to ts mode
LuLaValva Apr 11, 2023
3acaf30
feat(body-scroll): convert to ts
LuLaValva Apr 11, 2023
2a6574e
feat(build-safe-regex): convert to ts
LuLaValva Apr 11, 2023
dff0247
feat(cdn): convert to ts
LuLaValva Apr 11, 2023
12cccbb
feat(dom): convert to ts
LuLaValva Apr 11, 2023
7279987
feat(element-scroll): convert to ts
LuLaValva Apr 11, 2023
4482d02
feat(event-utils): convert to ts
LuLaValva Apr 11, 2023
4720274
feat(html-attributes): convert to ts
LuLaValva Apr 11, 2023
255cb2a
feat(loader): convert to ts
LuLaValva Apr 11, 2023
1ea335d
feat(transition): convert to ts
LuLaValva Apr 11, 2023
2f0a7c0
feat(dialog-base): convert to ts
LuLaValva Apr 14, 2023
1966d4f
feat(notice-base): convert to ts
LuLaValva Apr 18, 2023
d457fdb
docs(storybook): configure for ts
LuLaValva Apr 19, 2023
8d1c244
fix: update Marko and NativeTagInput
LuLaValva Apr 19, 2023
b50eb6a
feat(tooltip-base): convert to ts
LuLaValva Apr 19, 2023
2bcc399
feat(tooltip-overlay): convert to ts
LuLaValva Apr 19, 2023
253458b
fix(storybook): support declare keyword
LuLaValva Apr 20, 2023
1ff8dc7
feat(3d-viewer): convert to ts
LuLaValva Apr 20, 2023
4641947
feat(alert-dialog): convert to ts
LuLaValva Apr 21, 2023
40a2b4c
feat(icon): convert to ts
LuLaValva Apr 24, 2023
6ef2fa8
feat(svg): convert to ts
LuLaValva Apr 24, 2023
6708ba1
feat(badge): convert to ts
LuLaValva Apr 24, 2023
035ec57
feat(breadcrumbs): convert to ts
LuLaValva Apr 24, 2023
bf14400
feat(button): convert to ts
LuLaValva Apr 25, 2023
dfb2e15
feat(calendar): convert to ts
LuLaValva Apr 25, 2023
cbc1165
docs(storybook): convert .storybook to ts
LuLaValva Apr 25, 2023
35dd3de
feat(carousel): convert to ts
LuLaValva Apr 25, 2023
43a2cc4
feat(checkbox): convert to ts
LuLaValva Apr 25, 2023
8a65782
feat(combobox): convert to ts
LuLaValva Apr 25, 2023
dbb0da4
feat(dialog): convert to ts
LuLaValva Apr 26, 2023
7b5bf04
feat(cta-button): convert to ts
LuLaValva Apr 26, 2023
f6a380b
feat(date-textbox): convert to ts
LuLaValva Apr 26, 2023
4d0d047
feat(details): convert to ts
LuLaValva Apr 27, 2023
5d667af
feat(eek): convert to ts
LuLaValva Apr 27, 2023
fcb9f46
feat(fake-link): convert to ts
LuLaValva Apr 27, 2023
c8daf7f
feat(fake-menu): convert to ts
LuLaValva Apr 27, 2023
2d8b7b2
feat(menu): convert to ts
LuLaValva May 2, 2023
92e0d4b
feat(fake-tabs): convert to ts
LuLaValva May 2, 2023
9f2458c
feat(filter): convert to ts
LuLaValva May 2, 2023
4e048e8
fix(ts): omit event handlers from Inputs that extend native tags
LuLaValva May 3, 2023
da2746d
feat(infotip): convert to ts
LuLaValva May 3, 2023
879b9b8
feat(inline-notice): convert to ts
LuLaValva May 3, 2023
09ddb47
feat(listbox): convert to ts
LuLaValva May 3, 2023
9e59a8b
feat(listbox-button): convert to ts
LuLaValva May 3, 2023
3914983
feat(notice): convert to ts
LuLaValva May 3, 2023
b9ffeae
feat(pagination): convert to ts
LuLaValva May 9, 2023
d5b871d
feat(button): add event listeners
LuLaValva May 9, 2023
57ec839
feat(panel-dialog): convert to ts
LuLaValva May 9, 2023
3fd72e7
feat(progress-bar): convert to ts
LuLaValva May 9, 2023
28a300b
feat(progress-spinner): convert to ts
LuLaValva May 9, 2023
27c5760
feat(progress-stepper): convert to ts
LuLaValva May 9, 2023
5946334
feat(radio): convert to ts
LuLaValva May 10, 2023
6818e8f
feat(section-title): convert to ts
LuLaValva May 10, 2023
97e8d05
feat(select): convert to ts
LuLaValva May 10, 2023
567ffe4
feat(signal): convert to ts
LuLaValva May 10, 2023
ccbc9e2
feat(spark-line): convert to ts
LuLaValva May 10, 2023
69eb5fd
feat(split-button): convert to ts
LuLaValva May 10, 2023
63c8ea2
feat(star-rating): convert to ts
LuLaValva May 10, 2023
4372e87
feat(star-rating-select): convert to ts
LuLaValva May 10, 2023
77cbaf3
feat(switch): convert to ts
LuLaValva May 10, 2023
60b835e
feat(tabs): convert to ts
LuLaValva May 10, 2023
632d1e3
feat(textbox): convert to ts
LuLaValva May 10, 2023
4e3bd09
feat(dialog): add event listeners
LuLaValva May 10, 2023
a8df054
feat(tooltip): convert to ts
LuLaValva May 10, 2023
ce0dd47
feat(tourtip): convert to ts
LuLaValva May 10, 2023
68cc67d
feat(tri-state-textbox): convert to ts
LuLaValva May 10, 2023
bd625e5
feat(video): convert to ts
LuLaValva May 10, 2023
163bbd5
feat(icon-button): convert to ts
LuLaValva May 10, 2023
1b1cdeb
feat(ts): bring back component-browser for some components
LuLaValva May 10, 2023
7d3ef09
feat(3d-viewer): second ts pass
LuLaValva May 10, 2023
1de97c8
feat(alert-dialog): second ts pass
LuLaValva May 10, 2023
74f066c
feat(bar-chart): second ts pass
LuLaValva May 11, 2023
150b2bf
feat(bar-chart): second ts pass
LuLaValva May 12, 2023
3aa8144
feat(line-chart): second ts pass
LuLaValva May 12, 2023
b3641af
feat(breadcrumbs): second ts pass
LuLaValva May 12, 2023
c58a441
feat(calendar): second ts pass
LuLaValva May 12, 2023
16bdeb7
feat(carousel): second ts pass
LuLaValva May 12, 2023
2b4d3d6
feat(combobox): second ts pass
LuLaValva May 12, 2023
e5c40cc
feat(confirm-dialog): second ts pass
LuLaValva May 12, 2023
3e8e6ec
feat(date-textbox): second ts pass
LuLaValva May 12, 2023
a42415d
feat(details): second ts pass
LuLaValva May 12, 2023
e6d3b61
feat(drawer-dialog): second ts pass
LuLaValva May 12, 2023
0b6b406
feat(fake-link): second ts pass
LuLaValva May 12, 2023
4b1d362
feat(fake-menu-button): second ts pass
LuLaValva May 13, 2023
c1da5c8
feat(fake-tabs): second ts pass
LuLaValva May 13, 2023
5c15c48
feat(filter): second ts pass
LuLaValva May 13, 2023
fe03763
feat(fullscreen-dialog): second ts pass
LuLaValva May 13, 2023
98cdee9
feat(infotip): second ts pass
LuLaValva May 13, 2023
9aba733
feat(inline-notice): second ts pass
LuLaValva May 13, 2023
c68df25
feat(lightbox-dialog): second ts pass
LuLaValva May 13, 2023
6909432
feat(snackbar-dialog): second ts pass
LuLaValva May 13, 2023
9843979
feat(split-button): second ts pass
LuLaValva May 13, 2023
1302df9
feat(toast-dialog): second ts pass
LuLaValva May 13, 2023
40e920e
feat(ts): rename all style.js to styles.js
LuLaValva May 13, 2023
9906751
feat(ts): rename empty.js to empty.js
LuLaValva May 13, 2023
581dc8e
feat(3d-viewer): ts examples pass
LuLaValva May 13, 2023
e36cc9c
feat(alert-dialog): ts examples pass
LuLaValva May 13, 2023
c4c2a93
feat(badge): ts examples pass
LuLaValva May 13, 2023
c54207e
feat(breadcrumbs): ts examples pass
LuLaValva May 13, 2023
c41d66a
feat(calendar): ts examples pass
LuLaValva May 13, 2023
9510d7d
feat(carousel): ts examples pass
LuLaValva May 15, 2023
9f79e58
feat(checkbox): ts examples pass
LuLaValva May 15, 2023
78900fc
feat(combobox): ts examples pass
LuLaValva May 15, 2023
b164799
feat(confirm-dialog): ts examples pass
LuLaValva May 15, 2023
1c4abcf
feat(details): ts examples pass
LuLaValva May 15, 2023
02fe17d
feat(drawer-dialog): ts examples pass
LuLaValva May 15, 2023
a12b7ea
feat(expand-button): ts examples pass
LuLaValva May 15, 2023
6e62436
feat(fake-menu): ts examples pass
LuLaValva May 15, 2023
bd6029b
feat(fake-menu-button): ts examples pass
LuLaValva May 15, 2023
ff17780
feat(filter): ts examples pass
LuLaValva May 15, 2023
0b7e504
feat(tabs): ts examples pass
LuLaValva May 15, 2023
4a36f29
feat(filter-menu): ts examples pass
LuLaValva May 15, 2023
94ffe0c
feat(filter-menu-button): ts examples pass
LuLaValva May 15, 2023
c1a2bfe
feat(fullscreen-dialog): ts examples pass
LuLaValva May 15, 2023
c5c7c88
feat(infotip): ts examples pass
LuLaValva May 15, 2023
9190ec7
feat(lightbox-dialog): ts examples pass
LuLaValva May 16, 2023
56bdd79
feat(listbox-button): ts examples pass
LuLaValva May 16, 2023
496f77f
feat(menu): ts examples pass
LuLaValva May 16, 2023
6667ef6
feat(menu-button): ts examples pass
LuLaValva May 16, 2023
3d77322
feat(panel-dialog): ts examples pass
LuLaValva May 16, 2023
b30a8fa
feat(progress-stepper): ts examples pass
LuLaValva May 16, 2023
1289adf
feat(radio): ts examples pass
LuLaValva May 16, 2023
3fc2285
feat(section-notice): ts examples pass
LuLaValva May 16, 2023
3f81795
feat(section-title): ts examples pass
LuLaValva May 16, 2023
527070c
feat(select): ts examples pass
LuLaValva May 16, 2023
a385209
feat(snackbar-dialog): ts examples pass
LuLaValva May 16, 2023
ead64d0
feat(split-button): ts examples pass
LuLaValva May 16, 2023
2b3cad5
feat(star-rating): ts examples pass
LuLaValva May 16, 2023
c2d738c
feat(star-rating-select): ts examples pass
LuLaValva May 16, 2023
ff08158
feat(switch): ts examples pass
LuLaValva May 16, 2023
ce20e63
feat(tabs): ts examples pass
LuLaValva May 16, 2023
bc35225
feat(textbox): ts examples pass
LuLaValva May 16, 2023
45dbb26
feat(toast-dialog): ts examples pass
LuLaValva May 16, 2023
5a0f623
feat(ebay-tooltip): ts examples pass
LuLaValva May 16, 2023
fbbf1d0
feat(tourtip): ts examples pass
LuLaValva May 16, 2023
a265f39
feat(tri-state-textbox): ts examples pass
LuLaValva May 16, 2023
c22ef99
feat(video): ts examples pass
LuLaValva May 16, 2023
f9262d9
feat(ts): allow TS in test scripts
LuLaValva May 17, 2023
acb986e
feat(icon): convert more js files to ts
LuLaValva May 19, 2023
708a987
chore: update tests
LuLaValva May 19, 2023
71c4b3e
chore: update tests
LuLaValva May 19, 2023
c0e22cf
chore: fix lint errors
LuLaValva May 19, 2023
b088506
chore: run prettier on everything
LuLaValva May 22, 2023
7a591c5
chore: merge 12.2.0
LuLaValva May 22, 2023
71825b2
chore: re-import svgs
LuLaValva May 22, 2023
a7a90a1
feat(avatar): convert to ts
LuLaValva May 22, 2023
caaac0a
feat(image-placeholder): convert to ts
LuLaValva May 22, 2023
4390e54
feat(segmented-buttons): convert to ts
LuLaValva May 22, 2023
ff01ea0
feat(ts): add helper for attribute normalization
LuLaValva Jun 22, 2023
7f5f806
feat(ts): rename js files to ts
LuLaValva Sep 21, 2023
09ed868
Merge branch '12.6.0' into typescript
LuLaValva Sep 22, 2023
b20c2f0
fix(ts): update icon script
LuLaValva Sep 22, 2023
d039f4b
chore(ts): update icons
LuLaValva Sep 22, 2023
1885e47
feat(ts): update tests
LuLaValva Sep 25, 2023
7f8016f
feat(ts): clean up textbox
LuLaValva Sep 27, 2023
8cbefca
feat(ts): add mtc
LuLaValva Oct 16, 2023
b224e9f
fix(icon): update import script
LuLaValva Oct 16, 2023
0fb936f
feat(ts): fix all mtc errors
LuLaValva Oct 17, 2023
535d95a
feat(ts): rename js files to ts
LuLaValva Nov 30, 2023
59e3091
Merge branch '13.0.0' into typescript
LuLaValva Dec 1, 2023
9807593
fix(carousel): added delay to interacting state if carousel is moving
LuLaValva Dec 4, 2023
aa5b6b7
fix(storybook): get working with typescript
LuLaValva Dec 5, 2023
57cb0f9
style(storybook): rename for filename consistency
LuLaValva Dec 5, 2023
be73626
chore(import-svg): swap comment
LuLaValva Dec 7, 2023
9d32ffc
fix(ts): imports to .js files
LuLaValva Dec 7, 2023
ddeedb0
fix: remove .ts from flag defs
LuLaValva Dec 8, 2023
c701ec7
fix(ts): mtc errors since rebase
LuLaValva Dec 8, 2023
cff96e4
fix(storybook): switch to named default exports
LuLaValva Dec 11, 2023
c55fb19
feat(ts): make types stricter and fix problems
LuLaValva Dec 13, 2023
12a3635
feat(confirm-dialog): don't pass confirmCtaVariant to dialog-base
LuLaValva Dec 13, 2023
91b78ee
fix(test): browser tests with ts
LuLaValva Dec 14, 2023
0f5dfed
fix: browser tests
LuLaValva Dec 14, 2023
f42b573
fix(carousel): added delay to interacting state if carousel is moving
LuLaValva Dec 14, 2023
0bd538e
fix(test): browser test edge cases
LuLaValva Dec 15, 2023
beb1a5d
fix: remove console log
LuLaValva Dec 15, 2023
3ef47b5
feat(tooltip): swapped to use floatingui
agliga Dec 14, 2023
3602ea0
Merge branch '13.0.0' of https://github.com/eBay/ebayui-core into flo…
agliga Dec 19, 2023
d23fe50
fix: text on different screen size
agliga Dec 21, 2023
8b2bd3c
Merge branch '13.0.0' of https://github.com/eBay/ebayui-core into flo…
agliga Dec 21, 2023
0d0147f
fix(tooltip): added old pointer positions and added positions as new
agliga Dec 22, 2023
be1c1c9
fix: changed type to Placement for pointerStyles
agliga Dec 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Expander from "makeup-expander";
import focusables from "makeup-focusables";
import { inline, autoUpdate, flip, computePosition, shift, offset, arrow, type Placement } from '@floating-ui/dom';
import { pointerStyles } from './constants'

interface TooptipBaseInput {
open?: boolean;
Expand All @@ -11,7 +12,8 @@ interface TooptipBaseInput {
"overlay-style"?: string;
"overlay-id"?: string;
"render-body"?: Marko.Renderable;
pointer?: Placement;
placement?: Placement;
pointer?: keyof typeof pointerStyles;
"on-base-expand"?: (event: { originalEvent: Event }) => void;
"on-base-collapse"?: (event: { originalEvent: Event }) => void;
}
Expand Down Expand Up @@ -110,7 +112,7 @@ class TooltipBase extends Marko.Component<Input> {

updateTip() {
computePosition((this.hostEl as HTMLElement), (this.overlayEl as HTMLElement), {
placement: this.input.pointer,
placement: this.input.placement || pointerStyles[this.input.pointer ?? 'bottom'] as Placement,
middleware: [
offset(this.input.offset || 6),
inline(),
Expand Down
14 changes: 14 additions & 0 deletions src/components/components/ebay-tooltip-base/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export const pointerStyles:{[index: string]: string} = {
agliga marked this conversation as resolved.
Show resolved Hide resolved
"left": "right",
"left-top": "right-start",
"left-bottom": "right-end",
"right": "left",
"right-top": "left-start",
"right-bottom": "left-end",
"top": "bottom",
"top-left": "bottom-start",
"top-right": "bottom-end",
"bottom-right": "top-end",
"bottom-left": "top-start",
"bottom": "top",
} as const;
4 changes: 2 additions & 2 deletions src/components/ebay-infotip/component.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import EbayTooltipBase from "../components/ebay-tooltip-base/component-browser";
import type { Placement } from '@floating-ui/dom';
import type { Input as TooltipBaseInput } from "../components/ebay-tooltip-base/component-browser";

interface InfotipInput extends Omit<Marko.Input<"span">, `on${string}`> {
open?: boolean;
variant?: "modal" | "default";
pointer?: Placement;
offset?: TooltipBaseInput['offset'];
pointer?: TooltipBaseInput['pointer'];
placement?: TooltipBaseInput['placement'];
disabled?: boolean;
"aria-label"?: string;
icon?: Marko.AttrTag<{ renderBody: Marko.Renderable }>;
Expand Down
4 changes: 2 additions & 2 deletions src/components/ebay-infotip/index.marko
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ static var ignoredAttributes = [
];
$ var isModal = input.variant === "modal";
$ var classPrefix = !isModal ? "infotip" : "dialog--mini";
$ var pointer = input.pointer || "bottom";

<span>
<ebay-tooltip-base
Expand All @@ -26,7 +25,8 @@ $ var pointer = input.pointer || "bottom";
type=classPrefix
overlayId:scoped="overlay"
offset=input.offset
pointer=pointer
pointer=input.pointer
placement=input.placement
onBase-expand(isModal ? undefined : "handleExpand")
onBase-collapse(isModal ? undefined : "handleCollapse")>
<span
Expand Down
2 changes: 1 addition & 1 deletion src/components/ebay-infotip/infotip.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default {
description:
"Either modal or default. If modal will show the mobile version of infotip",
},
pointer: {
placement: {
options: [
'top', 'right', 'bottom', 'left',
'top-start', 'right-start', 'bottom-start', 'left-start',
Expand Down
20 changes: 16 additions & 4 deletions src/components/ebay-infotip/marko-tag.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,22 @@
"left-top"
]
},
"@style-top": "string",
"@style-left": "string",
"@style-right": "string",
"@style-bottom": "string",
"@placement": {
"enum": [
"top",
"right",
"bottom",
"left",
"top-start",
"right-start",
"bottom-start",
"left-start",
"top-end",
"right-end",
"bottom-end",
"left-end"
]
},
"@aria-label": "string",
"@variant": "string",
"@a11y-close-button-text": "string",
Expand Down
1 change: 1 addition & 0 deletions src/components/ebay-tooltip/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ interface TooltipInput extends Omit<Marko.Input<"span">, `on${string}`> {
heading?: TooltipOverlayInput["heading"];
content?: TooltipOverlayInput["content"];
pointer?: TooltipBaseInput['pointer'];
placement?: TooltipBaseInput['placement'];
offset?: TooltipBaseInput['offset'];
"on-expand"?: () => void;
"on-collapse"?: () => void;
Expand Down
12 changes: 4 additions & 8 deletions src/components/ebay-tooltip/index.marko
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@ import { processHtmlAttributes } from "../../common/html-attributes";
static const isBrowser = typeof window !== "undefined";
static var ignoredAttributes = [
"pointer",
"styleTop",
"styleLeft",
"styleRight",
"styleBottom",
"noHover",
"host",
"content",
"heading"
"heading",
"placement"
];

$ var pointer = input.pointer || "bottom";

<if(isBrowser && state.open)>
<subscribe to=document as any on-keydown("handleKeydown")/>
</if>
Expand All @@ -26,7 +21,8 @@ $ var pointer = input.pointer || "bottom";
type="tooltip"
overlayId:scoped="overlay"
noHover=input.noHover
pointer=pointer
pointer=input.pointer
placement=input.placement
offset=input.offset
onBase-expand("handleExpand")
onBase-collapse("handleCollapse")>
Expand Down
20 changes: 16 additions & 4 deletions src/components/ebay-tooltip/marko-tag.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,22 @@
"left-top"
]
},
"@style-top": "string",
"@style-left": "string",
"@style-right": "string",
"@style-bottom": "string",
"@placement": {
"enum": [
"top",
"right",
"bottom",
"left",
"top-start",
"right-start",
"bottom-start",
"left-start",
"top-end",
"right-end",
"bottom-end",
"left-end"
]
},
"@no-hover": "boolean",
"@heading <heading>": {
"attribute-groups": ["html-attributes"],
Expand Down
2 changes: 1 addition & 1 deletion src/components/ebay-tooltip/tooltip.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
},

argTypes: {
pointer: {
placement: {
options: [
'top', 'right', 'bottom', 'left',
'top-start', 'right-start', 'bottom-start', 'left-start',
Expand Down
4 changes: 2 additions & 2 deletions src/components/ebay-tourtip/component.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { Input as TooltipBaseInput } from "../components/ebay-tooltip-base/component-browser";
import type { Input as TooltipOverlayInput } from "../components/ebay-tooltip-overlay/component-browser";
import type { Placement } from '@floating-ui/dom';

interface TourtipInput extends Omit<Marko.Input<"span">, `on${string}`> {
open?: boolean;
"no-hover"?: TooltipBaseInput["noHover"];
host?: Marko.Input<"span">;
offset?: TooltipBaseInput['offset'];
pointer?: Placement;
pointer?: TooltipBaseInput['pointer'];
placement?: TooltipBaseInput['placement'];
heading?: TooltipOverlayInput["heading"];
content?: TooltipOverlayInput["content"];
"a11y-close-text"?: TooltipOverlayInput["a11yCloseText"];
Expand Down
5 changes: 2 additions & 3 deletions src/components/ebay-tourtip/index.marko
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ static var ignoredAttributes = [
"content"
];

$ var pointer = input.pointer || "bottom";

<span>
<ebay-tooltip-base
key="base"
type="tourtip"
pointer=pointer
pointer=input.pointer
placement=input.placement
offset=input.offset
overlay-id:scoped="overlay">
<span
Expand Down
20 changes: 16 additions & 4 deletions src/components/ebay-tourtip/marko-tag.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,22 @@
"left-top"
]
},
"@style-top": "string",
"@style-left": "string",
"@style-right": "string",
"@style-bottom": "string",
"@placement": {
"enum": [
"top",
"right",
"bottom",
"left",
"top-start",
"right-start",
"bottom-start",
"left-start",
"top-end",
"right-end",
"bottom-end",
"left-end"
]
},
"@a11y-close-text": "string",
"@host <host>": {
"attribute-groups": ["html-attributes"],
Expand Down
2 changes: 1 addition & 1 deletion src/components/ebay-tourtip/tourtip.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
},

argTypes: {
pointer: {
placement: {
options: [
'top', 'right', 'bottom', 'left',
'top-start', 'right-start', 'bottom-start', 'left-start',
Expand Down
Loading