@@ -2,7 +2,7 @@ import { disableDefaultModes } from "@spectrum-css/preview/modes";
2
2
import { isFocused , isOpen } from "@spectrum-css/preview/types" ;
3
3
import metadata from "../metadata/metadata.json" ;
4
4
import packageJson from "../package.json" ;
5
- import { SemanticVariantGroup , TooltipPlacementGroup , TooltipShowOnHover } from "./template.js" ;
5
+ import { Template } from "./template.js" ;
6
6
import { PlacementVariants } from "./tooltip.test.js" ;
7
7
8
8
/**
@@ -101,7 +101,7 @@ Default.args = {};
101
101
* is its source's position. For example, for the position and modifier class `--top-left`, the tooltip is positioned
102
102
* at the top and the source is to the left. The default placement value if none is specified is at the top.
103
103
*/
104
- export const Placement = TooltipPlacementGroup . bind ( { } ) ;
104
+ export const Placement = Template . bind ( { } ) ;
105
105
Placement . tags = [ "!dev" ] ;
106
106
Placement . parameters = {
107
107
chromatic : { disableSnapshot : true } ,
@@ -111,7 +111,7 @@ Placement.parameters = {
111
111
* A tooltip that shows on hover using CSS only. Note that this approach does not support text wrapping. Also, note
112
112
* that these tooltips will likely not work on touch-enabled devices without additional client-side scripting.
113
113
*/
114
- export const ShowOnHover = TooltipShowOnHover . bind ( { } ) ;
114
+ export const ShowOnHover = Template . bind ( { } ) ;
115
115
ShowOnHover . tags = [ "!dev" ] ;
116
116
ShowOnHover . args = {
117
117
label : "Tooltip" ,
@@ -132,7 +132,7 @@ ShowOnHover.parameters = {
132
132
* customized. Unless it's being used to provide context about the exact same icon, a semantic tooltip should always
133
133
* show an icon. Doing this is essential for helping users with color vision deficiency to discern the message tone.
134
134
*/
135
- export const SemanticVariants = SemanticVariantGroup . bind ( { } ) ;
135
+ export const SemanticVariants = Template . bind ( { } ) ;
136
136
SemanticVariants . tags = [ "!dev" ] ;
137
137
SemanticVariants . parameters = {
138
138
chromatic : { disableSnapshot : true } ,
0 commit comments