@spectrum-web-components/tooltip 1.6.1-beta.0 → 1.7.0-snapshot.20250519143559
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/package.json +5 -8
- package/custom-elements.json +0 -380
- package/src/spectrum-config.js +0 -168
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/tooltip",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0-snapshot.20250519143559",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -68,13 +68,10 @@
|
|
|
68
68
|
"css"
|
|
69
69
|
],
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@spectrum-web-components/base": "1.
|
|
72
|
-
"@spectrum-web-components/overlay": "1.
|
|
73
|
-
"@spectrum-web-components/reactive-controllers": "1.
|
|
74
|
-
"@spectrum-web-components/shared": "1.
|
|
75
|
-
},
|
|
76
|
-
"devDependencies": {
|
|
77
|
-
"@spectrum-css/tooltip": "7.1.0"
|
|
71
|
+
"@spectrum-web-components/base": "1.7.0-snapshot.20250519143559",
|
|
72
|
+
"@spectrum-web-components/overlay": "1.7.0-snapshot.20250519143559",
|
|
73
|
+
"@spectrum-web-components/reactive-controllers": "1.7.0-snapshot.20250519143559",
|
|
74
|
+
"@spectrum-web-components/shared": "1.7.0-snapshot.20250519143559"
|
|
78
75
|
},
|
|
79
76
|
"types": "./src/index.d.ts",
|
|
80
77
|
"customElements": "custom-elements.json",
|
package/custom-elements.json
DELETED
|
@@ -1,380 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "1.0.0",
|
|
3
|
-
"readme": "",
|
|
4
|
-
"modules": [
|
|
5
|
-
{
|
|
6
|
-
"kind": "javascript-module",
|
|
7
|
-
"path": "sp-tooltip.js",
|
|
8
|
-
"declarations": [],
|
|
9
|
-
"exports": [
|
|
10
|
-
{
|
|
11
|
-
"kind": "custom-element-definition",
|
|
12
|
-
"name": "sp-tooltip",
|
|
13
|
-
"declaration": {
|
|
14
|
-
"name": "Tooltip",
|
|
15
|
-
"module": "/src/Tooltip.js"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"kind": "javascript-module",
|
|
22
|
-
"path": "src/Tooltip.js",
|
|
23
|
-
"declarations": [
|
|
24
|
-
{
|
|
25
|
-
"kind": "class",
|
|
26
|
-
"description": "",
|
|
27
|
-
"name": "TooltipOpenable",
|
|
28
|
-
"members": [
|
|
29
|
-
{
|
|
30
|
-
"kind": "method",
|
|
31
|
-
"name": "redispatchEvent",
|
|
32
|
-
"return": {
|
|
33
|
-
"type": {
|
|
34
|
-
"text": "void"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"parameters": [
|
|
38
|
-
{
|
|
39
|
-
"name": "event",
|
|
40
|
-
"type": {
|
|
41
|
-
"text": "Event"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"kind": "field",
|
|
48
|
-
"name": "tooltip",
|
|
49
|
-
"type": {
|
|
50
|
-
"text": "Tooltip"
|
|
51
|
-
},
|
|
52
|
-
"readonly": true
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"kind": "field",
|
|
56
|
-
"name": "open",
|
|
57
|
-
"type": {
|
|
58
|
-
"text": "boolean"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"kind": "field",
|
|
63
|
-
"name": "_open",
|
|
64
|
-
"type": {
|
|
65
|
-
"text": "boolean"
|
|
66
|
-
},
|
|
67
|
-
"privacy": "private",
|
|
68
|
-
"default": "false"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"kind": "field",
|
|
72
|
-
"name": "placement",
|
|
73
|
-
"type": {
|
|
74
|
-
"text": "Placement"
|
|
75
|
-
},
|
|
76
|
-
"attribute": "placement"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"kind": "field",
|
|
80
|
-
"name": "_placement",
|
|
81
|
-
"type": {
|
|
82
|
-
"text": "Placement"
|
|
83
|
-
},
|
|
84
|
-
"privacy": "private",
|
|
85
|
-
"default": "'top'"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"kind": "field",
|
|
89
|
-
"name": "tipElement",
|
|
90
|
-
"type": {
|
|
91
|
-
"text": "HTMLElement"
|
|
92
|
-
},
|
|
93
|
-
"readonly": true
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
"attributes": [
|
|
97
|
-
{
|
|
98
|
-
"name": "open"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"name": "placement",
|
|
102
|
-
"type": {
|
|
103
|
-
"text": "\"top\" | \"top-start\" | \"top-end\" | \"right\" | \"right-start\" | \"right-end\" | \"bottom\" | \"bottom-start\" | \"bottom-end\" | \"left\" | \"left-start\" | \"left-end\""
|
|
104
|
-
},
|
|
105
|
-
"fieldName": "placement"
|
|
106
|
-
}
|
|
107
|
-
],
|
|
108
|
-
"superclass": {
|
|
109
|
-
"name": "HTMLElement"
|
|
110
|
-
},
|
|
111
|
-
"tagName": "sp-tooltip-openable",
|
|
112
|
-
"customElement": true
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"kind": "class",
|
|
116
|
-
"description": "",
|
|
117
|
-
"name": "Tooltip",
|
|
118
|
-
"slots": [
|
|
119
|
-
{
|
|
120
|
-
"description": "the icon element appearing at the start of the label",
|
|
121
|
-
"name": "icon"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"description": "the text label of the Tooltip",
|
|
125
|
-
"name": ""
|
|
126
|
-
}
|
|
127
|
-
],
|
|
128
|
-
"members": [
|
|
129
|
-
{
|
|
130
|
-
"kind": "field",
|
|
131
|
-
"name": "delayed",
|
|
132
|
-
"type": {
|
|
133
|
-
"text": "boolean"
|
|
134
|
-
},
|
|
135
|
-
"default": "false",
|
|
136
|
-
"description": "A Tooltip that is `delayed` will its Overlay wait until a warm-up period of\n1000ms has completed before opening. Once the warmup period has completed, all\nsubsequent Overlays will open immediately. When no Overlays are opened, a\ncooldown period of 1000ms will begin. Once the cooldown has completed, the next\nOverlay to be opened will be subject to the warm-up period if provided that option.",
|
|
137
|
-
"attribute": "delayed"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"kind": "field",
|
|
141
|
-
"name": "dependencyManager",
|
|
142
|
-
"privacy": "private",
|
|
143
|
-
"default": "new DependencyManagerController(this)"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"kind": "field",
|
|
147
|
-
"name": "disabled",
|
|
148
|
-
"type": {
|
|
149
|
-
"text": "boolean"
|
|
150
|
-
},
|
|
151
|
-
"default": "false",
|
|
152
|
-
"description": "Whether to prevent a self-managed Tooltip from responding to user input.",
|
|
153
|
-
"attribute": "disabled"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"kind": "field",
|
|
157
|
-
"name": "selfManaged",
|
|
158
|
-
"type": {
|
|
159
|
-
"text": "boolean"
|
|
160
|
-
},
|
|
161
|
-
"privacy": "public",
|
|
162
|
-
"default": "false",
|
|
163
|
-
"description": "Automatically bind to the parent element of the assigned `slot` or the parent element of the `sp-tooltip`.\nWithout this, you must provide your own `overlay-trigger`.",
|
|
164
|
-
"attribute": "self-managed"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"kind": "field",
|
|
168
|
-
"name": "offset",
|
|
169
|
-
"type": {
|
|
170
|
-
"text": "number"
|
|
171
|
-
},
|
|
172
|
-
"privacy": "public",
|
|
173
|
-
"default": "0",
|
|
174
|
-
"attribute": "offset"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"kind": "field",
|
|
178
|
-
"name": "open",
|
|
179
|
-
"type": {
|
|
180
|
-
"text": "boolean"
|
|
181
|
-
},
|
|
182
|
-
"privacy": "public",
|
|
183
|
-
"default": "false",
|
|
184
|
-
"attribute": "open",
|
|
185
|
-
"reflects": true
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"kind": "field",
|
|
189
|
-
"name": "overlayElement",
|
|
190
|
-
"type": {
|
|
191
|
-
"text": "Overlay | undefined"
|
|
192
|
-
},
|
|
193
|
-
"privacy": "public"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"kind": "field",
|
|
197
|
-
"name": "placement",
|
|
198
|
-
"type": {
|
|
199
|
-
"text": "\"top\" | \"top-start\" | \"top-end\" | \"right\" | \"right-start\" | \"right-end\" | \"bottom\" | \"bottom-start\" | \"bottom-end\" | \"left\" | \"left-start\" | \"left-end\""
|
|
200
|
-
},
|
|
201
|
-
"privacy": "public",
|
|
202
|
-
"attribute": "placement",
|
|
203
|
-
"reflects": true
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"kind": "field",
|
|
207
|
-
"name": "tipElement",
|
|
208
|
-
"type": {
|
|
209
|
-
"text": "HTMLSpanElement"
|
|
210
|
-
},
|
|
211
|
-
"privacy": "public"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"kind": "field",
|
|
215
|
-
"name": "tipPadding",
|
|
216
|
-
"type": {
|
|
217
|
-
"text": "number | undefined"
|
|
218
|
-
},
|
|
219
|
-
"privacy": "public",
|
|
220
|
-
"attribute": "tipPadding"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"kind": "field",
|
|
224
|
-
"name": "_variant",
|
|
225
|
-
"type": {
|
|
226
|
-
"text": "string"
|
|
227
|
-
},
|
|
228
|
-
"privacy": "private",
|
|
229
|
-
"default": "''"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"kind": "field",
|
|
233
|
-
"name": "variant",
|
|
234
|
-
"type": {
|
|
235
|
-
"text": "string"
|
|
236
|
-
},
|
|
237
|
-
"privacy": "public",
|
|
238
|
-
"attribute": "variant"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"kind": "field",
|
|
242
|
-
"name": "handleOpenOverlay",
|
|
243
|
-
"privacy": "private"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"kind": "field",
|
|
247
|
-
"name": "handleCloseOverlay",
|
|
248
|
-
"privacy": "protected"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"kind": "method",
|
|
252
|
-
"name": "forwardTransitionEvent",
|
|
253
|
-
"privacy": "protected",
|
|
254
|
-
"return": {
|
|
255
|
-
"type": {
|
|
256
|
-
"text": "void"
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
"parameters": [
|
|
260
|
-
{
|
|
261
|
-
"name": "event",
|
|
262
|
-
"type": {
|
|
263
|
-
"text": "TransitionEvent"
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
]
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"kind": "field",
|
|
270
|
-
"name": "triggerElement",
|
|
271
|
-
"type": {
|
|
272
|
-
"text": "HTMLElement | null"
|
|
273
|
-
},
|
|
274
|
-
"privacy": "private",
|
|
275
|
-
"readonly": true
|
|
276
|
-
}
|
|
277
|
-
],
|
|
278
|
-
"events": [
|
|
279
|
-
{
|
|
280
|
-
"type": {
|
|
281
|
-
"text": "TransitionEvent"
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
],
|
|
285
|
-
"attributes": [
|
|
286
|
-
{
|
|
287
|
-
"name": "placement",
|
|
288
|
-
"type": {
|
|
289
|
-
"text": "\"top\" | \"top-start\" | \"top-end\" | \"right\" | \"right-start\" | \"right-end\" | \"bottom\" | \"bottom-start\" | \"bottom-end\" | \"left\" | \"left-start\" | \"left-end\""
|
|
290
|
-
},
|
|
291
|
-
"fieldName": "placement",
|
|
292
|
-
"attribute": "placement"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"name": "delayed",
|
|
296
|
-
"type": {
|
|
297
|
-
"text": "boolean"
|
|
298
|
-
},
|
|
299
|
-
"default": "false",
|
|
300
|
-
"description": "A Tooltip that is `delayed` will its Overlay wait until a warm-up period of\n1000ms has completed before opening. Once the warmup period has completed, all\nsubsequent Overlays will open immediately. When no Overlays are opened, a\ncooldown period of 1000ms will begin. Once the cooldown has completed, the next\nOverlay to be opened will be subject to the warm-up period if provided that option.",
|
|
301
|
-
"fieldName": "delayed"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
"name": "disabled",
|
|
305
|
-
"type": {
|
|
306
|
-
"text": "boolean"
|
|
307
|
-
},
|
|
308
|
-
"default": "false",
|
|
309
|
-
"description": "Whether to prevent a self-managed Tooltip from responding to user input.",
|
|
310
|
-
"fieldName": "disabled"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
"name": "self-managed",
|
|
314
|
-
"type": {
|
|
315
|
-
"text": "boolean"
|
|
316
|
-
},
|
|
317
|
-
"default": "false",
|
|
318
|
-
"description": "Automatically bind to the parent element of the assigned `slot` or the parent element of the `sp-tooltip`.\nWithout this, you must provide your own `overlay-trigger`.",
|
|
319
|
-
"fieldName": "selfManaged"
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
"name": "offset",
|
|
323
|
-
"type": {
|
|
324
|
-
"text": "number"
|
|
325
|
-
},
|
|
326
|
-
"default": "0",
|
|
327
|
-
"fieldName": "offset"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
"name": "open",
|
|
331
|
-
"type": {
|
|
332
|
-
"text": "boolean"
|
|
333
|
-
},
|
|
334
|
-
"default": "false",
|
|
335
|
-
"fieldName": "open"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"name": "tipPadding",
|
|
339
|
-
"type": {
|
|
340
|
-
"text": "number | undefined"
|
|
341
|
-
},
|
|
342
|
-
"fieldName": "tipPadding"
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
"name": "variant",
|
|
346
|
-
"type": {
|
|
347
|
-
"text": "string"
|
|
348
|
-
},
|
|
349
|
-
"fieldName": "variant"
|
|
350
|
-
}
|
|
351
|
-
],
|
|
352
|
-
"superclass": {
|
|
353
|
-
"name": "SpectrumElement",
|
|
354
|
-
"package": "@spectrum-web-components/base"
|
|
355
|
-
},
|
|
356
|
-
"tagName": "sp-tooltip",
|
|
357
|
-
"customElement": true
|
|
358
|
-
}
|
|
359
|
-
],
|
|
360
|
-
"exports": [
|
|
361
|
-
{
|
|
362
|
-
"kind": "custom-element-definition",
|
|
363
|
-
"name": "sp-tooltip-openable",
|
|
364
|
-
"declaration": {
|
|
365
|
-
"name": "TooltipOpenable",
|
|
366
|
-
"module": "src/Tooltip.js"
|
|
367
|
-
}
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
"kind": "js",
|
|
371
|
-
"name": "Tooltip",
|
|
372
|
-
"declaration": {
|
|
373
|
-
"name": "Tooltip",
|
|
374
|
-
"module": "src/Tooltip.js"
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
]
|
|
378
|
-
}
|
|
379
|
-
]
|
|
380
|
-
}
|
package/src/spectrum-config.js
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
/*
|
|
3
|
-
Copyright 2023 Adobe. All rights reserved.
|
|
4
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
|
6
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
|
|
8
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
9
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
10
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
11
|
-
governing permissions and limitations under the License.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
builder,
|
|
16
|
-
converterFor,
|
|
17
|
-
} from '../../../tasks/process-spectrum-utils.js';
|
|
18
|
-
|
|
19
|
-
const converter = converterFor('spectrum-Tooltip');
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @type { import('../../../tasks/spectrum-css-converter').SpectrumCSSConverter }
|
|
23
|
-
*/
|
|
24
|
-
export default {
|
|
25
|
-
conversions: [
|
|
26
|
-
{
|
|
27
|
-
inPackage: '@spectrum-css/tooltip',
|
|
28
|
-
outPackage: 'tooltip',
|
|
29
|
-
fileName: 'tooltip',
|
|
30
|
-
excludeByComponents: [builder.class('u-tooltip-showOnHover')],
|
|
31
|
-
components: [
|
|
32
|
-
converter.classToId('spectrum-Tooltip', 'tooltip'),
|
|
33
|
-
converter.classToAttribute('is-open', 'open'),
|
|
34
|
-
{
|
|
35
|
-
find: [builder.class('spectrum-Tooltip--top')],
|
|
36
|
-
replace: [
|
|
37
|
-
{
|
|
38
|
-
replace: builder.attribute(
|
|
39
|
-
'placement',
|
|
40
|
-
'top',
|
|
41
|
-
'substring'
|
|
42
|
-
),
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
replace: builder.combinator(' '),
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
replace: builder.id('tooltip'),
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
expandSelector: true,
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
find: [builder.class('spectrum-Tooltip--bottom')],
|
|
55
|
-
replace: [
|
|
56
|
-
{
|
|
57
|
-
replace: builder.attribute(
|
|
58
|
-
'placement',
|
|
59
|
-
'bottom',
|
|
60
|
-
'substring'
|
|
61
|
-
),
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
replace: builder.combinator(' '),
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
replace: builder.id('tooltip'),
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
expandSelector: true,
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
find: [builder.class('spectrum-Tooltip--left')],
|
|
74
|
-
replace: [
|
|
75
|
-
{
|
|
76
|
-
replace: builder.attribute(
|
|
77
|
-
'placement',
|
|
78
|
-
'left',
|
|
79
|
-
'substring'
|
|
80
|
-
),
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
replace: builder.combinator(' '),
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
replace: builder.id('tooltip'),
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
|
-
expandSelector: true,
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
find: [builder.class('spectrum-Tooltip--right')],
|
|
93
|
-
replace: [
|
|
94
|
-
{
|
|
95
|
-
replace: builder.attribute(
|
|
96
|
-
'placement',
|
|
97
|
-
'right',
|
|
98
|
-
'substring'
|
|
99
|
-
),
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
replace: builder.combinator(' '),
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
replace: builder.id('tooltip'),
|
|
106
|
-
},
|
|
107
|
-
],
|
|
108
|
-
expandSelector: true,
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
find: [builder.class('spectrum-Tooltip--info')],
|
|
112
|
-
replace: [
|
|
113
|
-
{
|
|
114
|
-
replace: builder.attribute('variant', 'info'),
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
replace: builder.combinator(' '),
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
replace: builder.id('tooltip'),
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
expandSelector: true,
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
find: [builder.class('spectrum-Tooltip--positive')],
|
|
127
|
-
replace: [
|
|
128
|
-
{
|
|
129
|
-
replace: builder.attribute('variant', 'positive'),
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
replace: builder.combinator(' '),
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
replace: builder.id('tooltip'),
|
|
136
|
-
},
|
|
137
|
-
],
|
|
138
|
-
expandSelector: true,
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
find: [builder.class('spectrum-Tooltip--negative')],
|
|
142
|
-
replace: [
|
|
143
|
-
{
|
|
144
|
-
replace: builder.attribute('variant', 'negative'),
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
replace: builder.combinator(' '),
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
replace: builder.id('tooltip'),
|
|
151
|
-
},
|
|
152
|
-
],
|
|
153
|
-
expandSelector: true,
|
|
154
|
-
},
|
|
155
|
-
converter.classToId('spectrum-Tooltip-label'),
|
|
156
|
-
converter.classToId('spectrum-Tooltip-tip'),
|
|
157
|
-
converter.classToSlotted('spectrum-Tooltip-typeIcon', 'icon'),
|
|
158
|
-
{
|
|
159
|
-
find: {
|
|
160
|
-
type: 'pseudo-class',
|
|
161
|
-
kind: 'lang',
|
|
162
|
-
},
|
|
163
|
-
hoist: true,
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
},
|
|
167
|
-
],
|
|
168
|
-
};
|