From 4c1515169af81f5eb861e476d2bc07f17c8635fd Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 24 Jun 2025 22:03:23 -0500 Subject: Tooltip (#8555) * Working overlay, WIP * Ok working with no overlay and global gesture handler * Ok pretty good on native * Cleanup * Cleanup * add animation * add transform origin to animation * Some a11y * Improve colors * Explicitly wrap gesture handler * Add easier abstraction * Web * Fix animation * Cleanup and remove provider * Include demo for now * Ok diff interface to avoid collapsed views * Use dimensions hook * Adjust overlap, clarify intent of consts * Revert testing edits --------- Co-authored-by: Samuel Newman --- src/components/Tooltip/const.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/components/Tooltip/const.ts (limited to 'src/components/Tooltip/const.ts') diff --git a/src/components/Tooltip/const.ts b/src/components/Tooltip/const.ts new file mode 100644 index 000000000..cad7e0106 --- /dev/null +++ b/src/components/Tooltip/const.ts @@ -0,0 +1,6 @@ +import {atoms as a} from '#/alf' + +export const BUBBLE_MAX_WIDTH = 240 +export const ARROW_SIZE = 12 +export const ARROW_HALF_SIZE = ARROW_SIZE / 2 +export const MIN_EDGE_SPACE = a.px_lg.paddingLeft -- cgit 1.4.1