@spectrum-web-components/tooltip 0.11.15 → 0.11.16-overlay.22
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 +4 -4
- package/src/Tooltip.d.ts +7 -30
- package/src/Tooltip.dev.js +38 -163
- package/src/Tooltip.dev.js.map +3 -3
- package/src/Tooltip.js +20 -5
- package/src/Tooltip.js.map +3 -3
- package/src/spectrum-config.js +120 -17
- package/src/spectrum-tooltip.css.dev.js +19 -19
- package/src/spectrum-tooltip.css.dev.js.map +1 -1
- package/src/spectrum-tooltip.css.js +19 -19
- package/src/spectrum-tooltip.css.js.map +1 -1
- package/src/tooltip.css.dev.js +20 -20
- package/src/tooltip.css.dev.js.map +1 -1
- package/src/tooltip.css.js +20 -20
- package/src/tooltip.css.js.map +1 -1
- package/stories/tooltip.stories.js +12 -15
- package/stories/tooltip.stories.js.map +2 -2
- package/test/tooltip.test.js +12 -54
- package/test/tooltip.test.js.map +2 -2
- package/custom-elements.json +0 -374
package/test/tooltip.test.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["tooltip.test.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport '@spectrum-web-components/tooltip/sp-tooltip.js';\nimport { Tooltip } from '@spectrum-web-components/tooltip';\nimport {
|
|
5
|
-
"mappings": ";AAYA,OAAO;
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport '@spectrum-web-components/tooltip/sp-tooltip.js';\nimport { Tooltip } from '@spectrum-web-components/tooltip';\nimport {\n elementUpdated,\n expect,\n fixture,\n html,\n oneEvent,\n} from '@open-wc/testing';\nimport { Button } from '@spectrum-web-components/button';\nimport '@spectrum-web-components/button/sp-button.js';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\n\ndescribe('Tooltip', () => {\n testForLitDevWarnings(\n async () =>\n await fixture<Tooltip>(\n html`\n <sp-tooltip>Help text.</sp-tooltip>\n `\n )\n );\n it('loads', async () => {\n const el = await fixture<Tooltip>(\n html`\n <sp-tooltip>Help text.</sp-tooltip>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('self manages', async () => {\n const button = await fixture<Button>(\n html`\n <sp-button>\n This is a button.\n <sp-tooltip self-managed>Help text.</sp-tooltip>\n </sp-button>\n `\n );\n\n const el = button.querySelector('sp-tooltip') as Tooltip;\n\n await elementUpdated(el);\n await expect(button).to.be.accessible();\n\n const opened = oneEvent(button, 'sp-opened');\n button.focus();\n await opened;\n await elementUpdated(el);\n\n expect(el.open).to.be.true;\n await expect(button).to.be.accessible();\n\n const closed = oneEvent(button, 'sp-closed');\n button.blur();\n await closed;\n await elementUpdated(el);\n\n expect(el.open).to.be.false;\n });\n it('cleans up when self manages', async () => {\n const button = await fixture<Button>(\n html`\n <sp-button>\n This is a button.\n <sp-tooltip self-managed>Help text.</sp-tooltip>\n </sp-button>\n `\n );\n\n const el = button.querySelector('sp-tooltip') as Tooltip;\n\n await elementUpdated(el);\n\n expect(el.open).to.be.false;\n const opened = oneEvent(button, 'sp-opened');\n button.focus();\n await opened;\n await elementUpdated(el);\n\n expect(el.open).to.be.true;\n\n const closed = oneEvent(button, 'sp-closed');\n button.blur();\n await closed;\n\n expect(el.open).to.be.false;\n });\n xit('cleans up when self manages and removed', async () => {\n const button = await fixture<Button>(\n html`\n <sp-button>\n This is a button.\n <sp-tooltip self-managed>Help text.</sp-tooltip>\n </sp-button>\n `\n );\n\n const el = button.querySelector('sp-tooltip') as Tooltip;\n\n await elementUpdated(el);\n\n expect(el.open).to.be.false;\n const opened = oneEvent(button, 'sp-opened');\n button.focus();\n await opened;\n await elementUpdated(el);\n\n expect(el.open).to.be.true;\n\n const closed = oneEvent(button, 'sp-closed');\n button.remove();\n await closed;\n\n expect(el.open).to.be.false;\n });\n it('accepts variants', async () => {\n const el = await fixture<Tooltip>(\n html`\n <sp-tooltip variant=\"negative\">Help text.</sp-tooltip>\n `\n );\n\n await elementUpdated(el);\n\n expect(el.variant).to.equal('negative');\n expect(el.getAttribute('variant')).to.equal('negative');\n\n el.variant = 'info';\n\n await elementUpdated(el);\n\n expect(el.variant).to.equal('info');\n expect(el.getAttribute('variant')).to.equal('info');\n\n el.setAttribute('variant', 'positive');\n\n await elementUpdated(el);\n\n expect(el.variant).to.equal('positive');\n expect(el.getAttribute('variant')).to.equal('positive');\n\n el.removeAttribute('variant');\n\n await elementUpdated(el);\n\n expect(el.variant).to.equal('');\n expect(el.hasAttribute('variant')).to.be.false;\n });\n it('validates variants', async () => {\n const el = await fixture<Tooltip>(\n html`\n <sp-tooltip variant=\"other\">Help text.</sp-tooltip>\n `\n );\n\n await elementUpdated(el);\n\n expect(el.variant).to.equal('');\n expect(el.hasAttribute('variant')).to.be.false;\n\n el.variant = 'info';\n\n await elementUpdated(el);\n\n expect(el.variant).to.equal('info');\n expect(el.getAttribute('variant')).to.equal('info');\n\n el.variant = 'info';\n\n await elementUpdated(el);\n\n expect(el.variant).to.equal('info');\n expect(el.getAttribute('variant')).to.equal('info');\n });\n\n it('surfaces tip element', async () => {\n const el = await fixture<Tooltip>(\n html`\n <sp-tooltip placement=\"top\">Help text.</sp-tooltip>\n `\n );\n\n await elementUpdated(el);\n\n expect(typeof el.tipElement).to.not.equal('undefined');\n });\n});\n"],
|
|
5
|
+
"mappings": ";AAYA,OAAO;AAEP;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACG;AAEP,OAAO;AACP,SAAS,6BAA6B;AAEtC,SAAS,WAAW,MAAM;AACtB;AAAA,IACI,YACI,MAAM;AAAA,MACF;AAAA;AAAA;AAAA,IAGJ;AAAA,EACR;AACA,KAAG,SAAS,YAAY;AACpB,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA,IAGJ;AAEA,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,gBAAgB,YAAY;AAC3B,UAAM,SAAS,MAAM;AAAA,MACjB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMJ;AAEA,UAAM,KAAK,OAAO,cAAc,YAAY;AAE5C,UAAM,eAAe,EAAE;AACvB,UAAM,OAAO,MAAM,EAAE,GAAG,GAAG,WAAW;AAEtC,UAAM,SAAS,SAAS,QAAQ,WAAW;AAC3C,WAAO,MAAM;AACb,UAAM;AACN,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,IAAI,EAAE,GAAG,GAAG;AACtB,UAAM,OAAO,MAAM,EAAE,GAAG,GAAG,WAAW;AAEtC,UAAM,SAAS,SAAS,QAAQ,WAAW;AAC3C,WAAO,KAAK;AACZ,UAAM;AACN,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,IAAI,EAAE,GAAG,GAAG;AAAA,EAC1B,CAAC;AACD,KAAG,+BAA+B,YAAY;AAC1C,UAAM,SAAS,MAAM;AAAA,MACjB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMJ;AAEA,U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|
|
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": "TooltipProxy",
|
|
28
|
-
"events": [
|
|
29
|
-
{
|
|
30
|
-
"name": "disconnected",
|
|
31
|
-
"type": {
|
|
32
|
-
"text": "Event"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"superclass": {
|
|
37
|
-
"name": "HTMLElement"
|
|
38
|
-
},
|
|
39
|
-
"tagName": "tooltip-proxy",
|
|
40
|
-
"customElement": true
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"kind": "class",
|
|
44
|
-
"description": "",
|
|
45
|
-
"name": "Tooltip",
|
|
46
|
-
"slots": [
|
|
47
|
-
{
|
|
48
|
-
"description": "the icon element appearing at the start of the label",
|
|
49
|
-
"name": "icon"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"description": "the text label of the Tooltip",
|
|
53
|
-
"name": ""
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
"members": [
|
|
57
|
-
{
|
|
58
|
-
"kind": "field",
|
|
59
|
-
"name": "instanceCount",
|
|
60
|
-
"type": {
|
|
61
|
-
"text": "number"
|
|
62
|
-
},
|
|
63
|
-
"static": true,
|
|
64
|
-
"default": "0",
|
|
65
|
-
"privacy": "private"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"kind": "field",
|
|
69
|
-
"name": "_tooltipId",
|
|
70
|
-
"privacy": "private",
|
|
71
|
-
"default": "`sp-tooltip-describedby-helper-${Tooltip.instanceCount++}`"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"kind": "field",
|
|
75
|
-
"name": "selfManaged",
|
|
76
|
-
"type": {
|
|
77
|
-
"text": "boolean"
|
|
78
|
-
},
|
|
79
|
-
"privacy": "public",
|
|
80
|
-
"default": "false",
|
|
81
|
-
"attribute": "self-managed"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"kind": "field",
|
|
85
|
-
"name": "offset",
|
|
86
|
-
"type": {
|
|
87
|
-
"text": "number"
|
|
88
|
-
},
|
|
89
|
-
"privacy": "public",
|
|
90
|
-
"default": "6",
|
|
91
|
-
"attribute": "offset",
|
|
92
|
-
"reflects": true
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"kind": "field",
|
|
96
|
-
"name": "hadTooltipId",
|
|
97
|
-
"type": {
|
|
98
|
-
"text": "boolean"
|
|
99
|
-
},
|
|
100
|
-
"privacy": "private",
|
|
101
|
-
"default": "false"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"kind": "field",
|
|
105
|
-
"name": "open",
|
|
106
|
-
"type": {
|
|
107
|
-
"text": "boolean"
|
|
108
|
-
},
|
|
109
|
-
"privacy": "public",
|
|
110
|
-
"default": "false",
|
|
111
|
-
"attribute": "open",
|
|
112
|
-
"reflects": true
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"kind": "field",
|
|
116
|
-
"name": "placement",
|
|
117
|
-
"type": {
|
|
118
|
-
"text": "\"auto\" | \"auto-start\" | \"auto-end\" | \"top\" | \"bottom\" | \"right\" | \"left\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\" | \"right-start\" | \"right-end\" | \"left-start\" | \"left-end\" | \"none\""
|
|
119
|
-
},
|
|
120
|
-
"privacy": "public",
|
|
121
|
-
"default": "'top'",
|
|
122
|
-
"attribute": "placement",
|
|
123
|
-
"reflects": true
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"kind": "field",
|
|
127
|
-
"name": "tipElement",
|
|
128
|
-
"type": {
|
|
129
|
-
"text": "HTMLSpanElement"
|
|
130
|
-
},
|
|
131
|
-
"privacy": "private"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"kind": "field",
|
|
135
|
-
"name": "_variant",
|
|
136
|
-
"type": {
|
|
137
|
-
"text": "string"
|
|
138
|
-
},
|
|
139
|
-
"privacy": "private",
|
|
140
|
-
"default": "''"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"kind": "field",
|
|
144
|
-
"name": "variant",
|
|
145
|
-
"type": {
|
|
146
|
-
"text": "string"
|
|
147
|
-
},
|
|
148
|
-
"privacy": "public",
|
|
149
|
-
"attribute": "variant"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"kind": "method",
|
|
153
|
-
"name": "onOverlayQuery",
|
|
154
|
-
"privacy": "public",
|
|
155
|
-
"return": {
|
|
156
|
-
"type": {
|
|
157
|
-
"text": "void"
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"parameters": [
|
|
161
|
-
{
|
|
162
|
-
"name": "event",
|
|
163
|
-
"type": {
|
|
164
|
-
"text": "CustomEvent<OverlayDisplayQueryDetail>"
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
]
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"kind": "field",
|
|
171
|
-
"name": "_proxy",
|
|
172
|
-
"type": {
|
|
173
|
-
"text": "HTMLElement"
|
|
174
|
-
},
|
|
175
|
-
"privacy": "private"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"kind": "method",
|
|
179
|
-
"name": "generateProxy",
|
|
180
|
-
"privacy": "private",
|
|
181
|
-
"return": {
|
|
182
|
-
"type": {
|
|
183
|
-
"text": "void"
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"kind": "method",
|
|
189
|
-
"name": "overlayWillOpenCallback",
|
|
190
|
-
"privacy": "public",
|
|
191
|
-
"return": {
|
|
192
|
-
"type": {
|
|
193
|
-
"text": "void"
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
"parameters": [
|
|
197
|
-
{
|
|
198
|
-
"name": "{\n trigger,\n }",
|
|
199
|
-
"type": {
|
|
200
|
-
"text": "{\n trigger: HTMLElement;\n }"
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
]
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"kind": "method",
|
|
207
|
-
"name": "overlayOpenCancelledCallback",
|
|
208
|
-
"privacy": "public",
|
|
209
|
-
"return": {
|
|
210
|
-
"type": {
|
|
211
|
-
"text": "void"
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
"parameters": [
|
|
215
|
-
{
|
|
216
|
-
"name": "{\n trigger,\n }",
|
|
217
|
-
"type": {
|
|
218
|
-
"text": "{\n trigger: HTMLElement;\n }"
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
]
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"kind": "method",
|
|
225
|
-
"name": "overlayCloseCallback",
|
|
226
|
-
"privacy": "public",
|
|
227
|
-
"return": {
|
|
228
|
-
"type": {
|
|
229
|
-
"text": "void"
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
"parameters": [
|
|
233
|
-
{
|
|
234
|
-
"name": "{ trigger }",
|
|
235
|
-
"type": {
|
|
236
|
-
"text": "{ trigger: HTMLElement }"
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
]
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
"kind": "method",
|
|
243
|
-
"name": "removeProxy",
|
|
244
|
-
"privacy": "private",
|
|
245
|
-
"return": {
|
|
246
|
-
"type": {
|
|
247
|
-
"text": "void"
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"kind": "field",
|
|
253
|
-
"name": "closeOverlayCallback",
|
|
254
|
-
"type": {
|
|
255
|
-
"text": "Promise<() => void> | undefined"
|
|
256
|
-
},
|
|
257
|
-
"privacy": "private"
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"kind": "field",
|
|
261
|
-
"name": "abortOverlay",
|
|
262
|
-
"type": {
|
|
263
|
-
"text": "(cancelled: boolean) => void"
|
|
264
|
-
},
|
|
265
|
-
"privacy": "private"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"kind": "field",
|
|
269
|
-
"name": "openOverlay",
|
|
270
|
-
"privacy": "private"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
"kind": "field",
|
|
274
|
-
"name": "closeOverlay",
|
|
275
|
-
"privacy": "private"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"kind": "field",
|
|
279
|
-
"name": "previousSlot",
|
|
280
|
-
"type": {
|
|
281
|
-
"text": "string | undefined"
|
|
282
|
-
},
|
|
283
|
-
"privacy": "private"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"kind": "method",
|
|
287
|
-
"name": "manageTooltip",
|
|
288
|
-
"privacy": "private",
|
|
289
|
-
"return": {
|
|
290
|
-
"type": {
|
|
291
|
-
"text": "void"
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
],
|
|
296
|
-
"attributes": [
|
|
297
|
-
{
|
|
298
|
-
"name": "placement",
|
|
299
|
-
"type": {
|
|
300
|
-
"text": "\"auto\" | \"auto-start\" | \"auto-end\" | \"top\" | \"bottom\" | \"right\" | \"left\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\" | \"right-start\" | \"right-end\" | \"left-start\" | \"left-end\" | \"none\""
|
|
301
|
-
},
|
|
302
|
-
"default": "'top'",
|
|
303
|
-
"fieldName": "placement",
|
|
304
|
-
"attribute": "placement"
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"name": "self-managed",
|
|
308
|
-
"type": {
|
|
309
|
-
"text": "boolean"
|
|
310
|
-
},
|
|
311
|
-
"default": "false",
|
|
312
|
-
"fieldName": "selfManaged"
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
"name": "offset",
|
|
316
|
-
"type": {
|
|
317
|
-
"text": "number"
|
|
318
|
-
},
|
|
319
|
-
"default": "6",
|
|
320
|
-
"fieldName": "offset"
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
"name": "open",
|
|
324
|
-
"type": {
|
|
325
|
-
"text": "boolean"
|
|
326
|
-
},
|
|
327
|
-
"default": "false",
|
|
328
|
-
"fieldName": "open"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
"name": "variant",
|
|
332
|
-
"type": {
|
|
333
|
-
"text": "string"
|
|
334
|
-
},
|
|
335
|
-
"fieldName": "variant"
|
|
336
|
-
}
|
|
337
|
-
],
|
|
338
|
-
"superclass": {
|
|
339
|
-
"name": "SpectrumElement",
|
|
340
|
-
"package": "@spectrum-web-components/base"
|
|
341
|
-
},
|
|
342
|
-
"tagName": "sp-tooltip",
|
|
343
|
-
"customElement": true
|
|
344
|
-
}
|
|
345
|
-
],
|
|
346
|
-
"exports": [
|
|
347
|
-
{
|
|
348
|
-
"kind": "js",
|
|
349
|
-
"name": "TooltipProxy",
|
|
350
|
-
"declaration": {
|
|
351
|
-
"name": "TooltipProxy",
|
|
352
|
-
"module": "src/Tooltip.js"
|
|
353
|
-
}
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
"kind": "custom-element-definition",
|
|
357
|
-
"name": "tooltip-proxy",
|
|
358
|
-
"declaration": {
|
|
359
|
-
"name": "TooltipProxy",
|
|
360
|
-
"module": "src/Tooltip.js"
|
|
361
|
-
}
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
"kind": "js",
|
|
365
|
-
"name": "Tooltip",
|
|
366
|
-
"declaration": {
|
|
367
|
-
"name": "Tooltip",
|
|
368
|
-
"module": "src/Tooltip.js"
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
]
|
|
372
|
-
}
|
|
373
|
-
]
|
|
374
|
-
}
|