@telefonica/mistica 15.17.0 → 15.19.0
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/css/mistica.css +1 -1
- package/dist/button.css-mistica.js +61 -52
- package/dist/button.css.d.ts +33 -17
- package/dist/button.d.ts +9 -46
- package/dist/button.js +188 -237
- package/dist/callout.d.ts +1 -0
- package/dist/callout.js +10 -10
- package/dist/card.d.ts +6 -1
- package/dist/card.js +375 -365
- package/dist/chip.d.ts +1 -0
- package/dist/chip.js +15 -15
- package/dist/dialog.d.ts +1 -0
- package/dist/dialog.js +18 -17
- package/dist/feedback.js +58 -52
- package/dist/inline.css-mistica.js +11 -8
- package/dist/inline.css.d.ts +1 -0
- package/dist/inline.js +12 -12
- package/dist/logo-blau.d.ts +4 -0
- package/dist/logo-blau.js +74 -0
- package/dist/logo-common.d.ts +9 -0
- package/dist/logo-common.js +21 -0
- package/dist/logo-movistar.d.ts +4 -0
- package/dist/logo-movistar.js +99 -0
- package/dist/logo-o2-new.d.ts +4 -0
- package/dist/logo-o2-new.js +29 -0
- package/dist/logo-o2.d.ts +4 -0
- package/dist/logo-o2.js +29 -0
- package/dist/logo-telefonica.d.ts +4 -0
- package/dist/logo-telefonica.js +197 -0
- package/dist/logo-tu.d.ts +4 -0
- package/dist/logo-tu.js +28 -0
- package/dist/logo-vivo.d.ts +4 -0
- package/dist/logo-vivo.js +81 -0
- package/dist/logo.d.ts +10 -10
- package/dist/logo.js +174 -534
- package/dist/navigation-bar.d.ts +7 -0
- package/dist/navigation-bar.js +99 -91
- package/dist/package-version.js +1 -1
- package/dist/popover.d.ts +1 -0
- package/dist/popover.js +9 -7
- package/dist/snackbar-context.js +23 -22
- package/dist/snackbar.d.ts +1 -0
- package/dist/snackbar.js +51 -47
- package/dist/text.d.ts +1 -0
- package/dist/text.js +133 -109
- package/dist/tooltip.d.ts +1 -0
- package/dist/tooltip.js +110 -110
- package/dist-es/button.css-mistica.js +36 -18
- package/dist-es/button.js +219 -268
- package/dist-es/callout.js +38 -38
- package/dist-es/card.js +492 -482
- package/dist-es/chip.js +25 -25
- package/dist-es/dialog.js +22 -21
- package/dist-es/feedback.js +96 -89
- package/dist-es/inline.css-mistica.js +3 -3
- package/dist-es/inline.js +23 -23
- package/dist-es/logo-blau.js +65 -0
- package/dist-es/logo-common.js +12 -0
- package/dist-es/logo-movistar.js +90 -0
- package/dist-es/logo-o2-new.js +20 -0
- package/dist-es/logo-o2.js +20 -0
- package/dist-es/logo-telefonica.js +188 -0
- package/dist-es/logo-tu.js +19 -0
- package/dist-es/logo-vivo.js +72 -0
- package/dist-es/logo.js +132 -533
- package/dist-es/navigation-bar.js +163 -155
- package/dist-es/package-version.js +1 -1
- package/dist-es/popover.js +26 -24
- package/dist-es/snackbar-context.js +25 -24
- package/dist-es/snackbar.js +81 -77
- package/dist-es/style.css +1 -1
- package/dist-es/text.js +143 -119
- package/dist-es/tooltip.js +149 -149
- package/package.json +1 -1
package/dist-es/tooltip.js
CHANGED
|
@@ -78,112 +78,112 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
78
78
|
}
|
|
79
79
|
return target;
|
|
80
80
|
}
|
|
81
|
-
import { jsx as n, jsxs as
|
|
81
|
+
import { jsx as n, jsxs as B, Fragment as Tt } from "react/jsx-runtime";
|
|
82
82
|
import * as i from "react";
|
|
83
|
-
import { useTheme as
|
|
84
|
-
import { Portal as
|
|
85
|
-
import { Transition as
|
|
86
|
-
import { content as
|
|
87
|
-
import
|
|
88
|
-
import { Text2 as
|
|
83
|
+
import { useTheme as gt, useAriaId as vt, useBoundingRect as nt, useWindowSize as xt } from "./hooks.js";
|
|
84
|
+
import { Portal as bt } from "./portal.js";
|
|
85
|
+
import { Transition as Mt } from "react-transition-group";
|
|
86
|
+
import { content as Et, CONTENT_MIN_WIDTH as St, container as wt, tooltipTransitionClasses as It, tooltip as Ot, contentContainer as Rt, tooltipCenter as _t, closeButtonIcon as Nt, arrowContainer as Ct, arrow as yt } from "./tooltip.css-mistica.js";
|
|
87
|
+
import Lt from "./stack.js";
|
|
88
|
+
import { Text2 as at } from "./text.js";
|
|
89
89
|
import { getCssVarValue as kt } from "./utils/dom.js";
|
|
90
|
-
import { TAB as
|
|
91
|
-
import { isTouchableDevice as
|
|
92
|
-
import { isEqual as
|
|
93
|
-
import
|
|
94
|
-
import { vars as
|
|
95
|
-
import { useIsInverseVariant as
|
|
96
|
-
import { combineRefs as
|
|
97
|
-
import { useTooltipState as
|
|
98
|
-
import { isRunningAcceptanceTest as
|
|
99
|
-
import { IconButton as
|
|
100
|
-
import
|
|
101
|
-
import
|
|
102
|
-
const
|
|
103
|
-
border: `1px solid ${t ?
|
|
104
|
-
}),
|
|
90
|
+
import { TAB as At, ESC as $t } from "./utils/keys.js";
|
|
91
|
+
import { isTouchableDevice as Ft } from "./utils/environment.js";
|
|
92
|
+
import { isEqual as lt } from "./utils/helpers.js";
|
|
93
|
+
import tt from "classnames";
|
|
94
|
+
import { vars as et } from "./skins/skin-contract.css-mistica.js";
|
|
95
|
+
import { useIsInverseVariant as Dt, ThemeVariant as Bt } from "./theme-variant-context.js";
|
|
96
|
+
import { combineRefs as Wt } from "./utils/common.js";
|
|
97
|
+
import { useTooltipState as Vt, useSetTooltipState as Ht } from "./tooltip-context-provider.js";
|
|
98
|
+
import { isRunningAcceptanceTest as Xt } from "./utils/platform.js";
|
|
99
|
+
import { IconButton as zt } from "./icon-button.js";
|
|
100
|
+
import Pt from "./generated/mistica-icons/icon-close-regular.js";
|
|
101
|
+
import Yt from "./box.js";
|
|
102
|
+
const ct = (t)=>({
|
|
103
|
+
border: `1px solid ${t ? et.colors.backgroundContainer : et.colors.border}`
|
|
104
|
+
}), ft = 496, Gt = 300, Kt = 500, Ut = 100, f = 20, S = 6, C = S + f / 2 + 1, jt = (t)=>{
|
|
105
105
|
switch(t){
|
|
106
106
|
case "left":
|
|
107
|
-
return `translateX(-${
|
|
107
|
+
return `translateX(-${S}px)`;
|
|
108
108
|
case "right":
|
|
109
|
-
return `translateX(${
|
|
109
|
+
return `translateX(${S}px)`;
|
|
110
110
|
case "top":
|
|
111
|
-
return `translateY(-${
|
|
111
|
+
return `translateY(-${S}px)`;
|
|
112
112
|
case "bottom":
|
|
113
|
-
return `translateY(${
|
|
113
|
+
return `translateY(${S}px)`;
|
|
114
114
|
default:
|
|
115
115
|
return "";
|
|
116
116
|
}
|
|
117
|
-
},
|
|
118
|
-
const h = parseFloat(getComputedStyle(t, null).paddingLeft) + parseFloat(getComputedStyle(t, null).paddingRight), v = parseFloat(getComputedStyle(t, null).paddingTop) + parseFloat(getComputedStyle(t, null).paddingBottom),
|
|
117
|
+
}, dt = (t)=>{
|
|
118
|
+
const h = parseFloat(getComputedStyle(t, null).paddingLeft) + parseFloat(getComputedStyle(t, null).paddingRight), v = parseFloat(getComputedStyle(t, null).paddingTop) + parseFloat(getComputedStyle(t, null).paddingBottom), p = t.offsetWidth - h, d = t.offsetHeight - v;
|
|
119
119
|
return {
|
|
120
|
-
width:
|
|
121
|
-
height:
|
|
120
|
+
width: p,
|
|
121
|
+
height: d
|
|
122
122
|
};
|
|
123
|
-
},
|
|
123
|
+
}, pt = (t, h, v, p, d)=>{
|
|
124
124
|
if (!t || !h) return;
|
|
125
|
-
const { top: x, bottom:
|
|
126
|
-
if (!(!
|
|
125
|
+
const { top: x, bottom: w, left: W, right: V } = t, I = p - w, o = d - V, O = x, R = W, { width: m, height: X } = dt(h), _ = m + C, N = X + C, T = _ <= Math.max(R, o), b = N <= Math.max(I, O);
|
|
126
|
+
if (!(!b && !T)) switch(v){
|
|
127
127
|
case "left":
|
|
128
|
-
return
|
|
128
|
+
return T ? _ <= R ? "left" : "right" : I > O ? "bottom" : "top";
|
|
129
129
|
case "right":
|
|
130
|
-
return
|
|
130
|
+
return T ? _ <= o ? "right" : "left" : I > O ? "bottom" : "top";
|
|
131
131
|
case "top":
|
|
132
|
-
return
|
|
132
|
+
return b ? N <= O ? "top" : "bottom" : R > o ? "left" : "right";
|
|
133
133
|
case "bottom":
|
|
134
|
-
return
|
|
134
|
+
return b ? N <= I ? "bottom" : "top" : R > o ? "left" : "right";
|
|
135
135
|
default:
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
|
-
},
|
|
139
|
-
let { content: t, target: h, width: v, position:
|
|
140
|
-
const { texts: R } =
|
|
141
|
-
|
|
138
|
+
}, qt = (param)=>{
|
|
139
|
+
let { content: t, target: h, width: v, position: p = "top", dataAttributes: d, delay: x = !0, centerContent: w, open: W, onClose: V, closeButtonLabel: I, hasPointerInteractionOnly: o = !1, trackingEvent: O } = param;
|
|
140
|
+
const { texts: R } = gt(), m = vt(), { openTooltipId: X } = Vt(), { openTooltip: _, closeTooltip: N } = Ht(), [T, b] = i.useState(), [z, P] = i.useState(), Y = i.useRef(null), G = i.useRef(null), [y, mt] = i.useState(null), u = Ft(), K = x ? Kt : 0, [ot, U] = i.useState(!1), [j, L] = i.useState(!1), q = W !== void 0, [rt, Z] = i.useState(!1), M = q ? W : m === X, J = Dt(), c = nt(Y, M), H = nt(G, M, !0), a = xt(), E = i.useCallback(()=>{
|
|
141
|
+
Z(!1), U(!1), L(!1);
|
|
142
142
|
}, []);
|
|
143
143
|
i.useEffect(()=>{
|
|
144
|
-
|
|
144
|
+
M || E();
|
|
145
145
|
}, [
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
M,
|
|
147
|
+
E
|
|
148
148
|
]), i.useEffect(()=>{
|
|
149
|
-
if (!
|
|
150
|
-
const s =
|
|
151
|
-
if (!s || !
|
|
152
|
-
b(void 0),
|
|
149
|
+
if (!y || !M) return;
|
|
150
|
+
const s = pt(c, y, p, a.height, a.width);
|
|
151
|
+
if (!s || !c) {
|
|
152
|
+
b(void 0), P(void 0), E();
|
|
153
153
|
return;
|
|
154
154
|
}
|
|
155
155
|
let r, e;
|
|
156
156
|
var _parseInt;
|
|
157
|
-
const { left:
|
|
157
|
+
const { left: l, right: k, top: A, bottom: $ } = c, { width: F, height: D } = dt(y), st = a.width - F, it = a.height - D, g = (_parseInt = parseInt(kt(et.borderRadii.popup))) !== null && _parseInt !== void 0 ? _parseInt : 8;
|
|
158
158
|
switch(s){
|
|
159
159
|
case "top":
|
|
160
160
|
r = {
|
|
161
|
-
left: Math.max(0, Math.min(
|
|
162
|
-
top:
|
|
163
|
-
padding: `0px 0px ${
|
|
161
|
+
left: Math.max(0, Math.min(st, (l + k - F) / 2)),
|
|
162
|
+
top: A - D - f / 2,
|
|
163
|
+
padding: `0px 0px ${C}px 0px`
|
|
164
164
|
}, e = {
|
|
165
|
-
left: Math.max(g, Math.min(
|
|
165
|
+
left: Math.max(g, Math.min(a.width - g - f, (l + k - f) / 2)),
|
|
166
166
|
top: "100%"
|
|
167
167
|
};
|
|
168
168
|
break;
|
|
169
169
|
case "bottom":
|
|
170
170
|
r = {
|
|
171
|
-
left: Math.max(0, Math.min(
|
|
172
|
-
top:
|
|
173
|
-
padding: `${
|
|
171
|
+
left: Math.max(0, Math.min(st, (l + k - F) / 2)),
|
|
172
|
+
top: $ - S,
|
|
173
|
+
padding: `${C}px 0px 0px 0px`
|
|
174
174
|
}, e = {
|
|
175
|
-
left: Math.max(g, Math.min(
|
|
175
|
+
left: Math.max(g, Math.min(a.width - g - f, (l + k - f) / 2)),
|
|
176
176
|
bottom: "100%",
|
|
177
177
|
transform: "rotate(180deg)"
|
|
178
178
|
};
|
|
179
179
|
break;
|
|
180
180
|
case "left":
|
|
181
181
|
r = {
|
|
182
|
-
left:
|
|
183
|
-
top: Math.max(0, Math.min(
|
|
184
|
-
padding: `0px ${
|
|
182
|
+
left: l - F - f / 2,
|
|
183
|
+
top: Math.max(0, Math.min(it, (A + $ - D) / 2)),
|
|
184
|
+
padding: `0px ${C}px 0px 0px`
|
|
185
185
|
}, e = {
|
|
186
|
-
top: Math.max(g, Math.min(
|
|
186
|
+
top: Math.max(g, Math.min(a.height - g - f, (A + $ - f) / 2)),
|
|
187
187
|
left: "100%",
|
|
188
188
|
transform: "rotate(-90deg)",
|
|
189
189
|
transformOrigin: "bottom"
|
|
@@ -192,101 +192,101 @@ const lt = (t)=>({
|
|
|
192
192
|
case "right":
|
|
193
193
|
default:
|
|
194
194
|
r = {
|
|
195
|
-
left: k -
|
|
196
|
-
top: Math.max(0, Math.min(
|
|
197
|
-
padding: `0px 0px 0px ${
|
|
195
|
+
left: k - S,
|
|
196
|
+
top: Math.max(0, Math.min(it, (A + $ - D) / 2)),
|
|
197
|
+
padding: `0px 0px 0px ${C}px`
|
|
198
198
|
}, e = {
|
|
199
|
-
top: Math.max(g, Math.min(
|
|
199
|
+
top: Math.max(g, Math.min(a.height - g - f, (A + $ - f) / 2)),
|
|
200
200
|
right: "100%",
|
|
201
201
|
transform: "rotate(90deg)",
|
|
202
202
|
transformOrigin: "bottom"
|
|
203
203
|
};
|
|
204
204
|
break;
|
|
205
205
|
}
|
|
206
|
-
typeof e.top == "number" && (e.top -= r.top, e.top = `${e.top /
|
|
206
|
+
typeof e.top == "number" && (e.top -= r.top, e.top = `${e.top / D * 100}%`), typeof e.left == "number" && (e.left -= r.left, e.left = `${e.left / F * 100}%`), lt(r, T) || b(r), lt(e, z) || P(e);
|
|
207
207
|
}, [
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
y,
|
|
209
|
+
c,
|
|
210
210
|
H,
|
|
211
|
-
E,
|
|
212
|
-
d,
|
|
213
|
-
l,
|
|
214
|
-
T,
|
|
215
211
|
M,
|
|
216
|
-
|
|
217
|
-
u,
|
|
212
|
+
p,
|
|
218
213
|
a,
|
|
219
|
-
|
|
214
|
+
T,
|
|
215
|
+
z,
|
|
216
|
+
J,
|
|
217
|
+
u,
|
|
218
|
+
m,
|
|
219
|
+
E
|
|
220
220
|
]);
|
|
221
|
-
const
|
|
221
|
+
const Q = i.useRef(!1);
|
|
222
222
|
i.useEffect(()=>{
|
|
223
|
-
const s = (
|
|
224
|
-
switch(
|
|
225
|
-
case
|
|
226
|
-
o ||
|
|
223
|
+
const s = (l)=>{
|
|
224
|
+
switch(l.key){
|
|
225
|
+
case $t:
|
|
226
|
+
o || E();
|
|
227
227
|
break;
|
|
228
|
-
case
|
|
229
|
-
|
|
228
|
+
case At:
|
|
229
|
+
Q.current = !0;
|
|
230
230
|
break;
|
|
231
231
|
}
|
|
232
|
-
}, r = ()=>
|
|
233
|
-
!o && u &&
|
|
232
|
+
}, r = ()=>Q.current = !1, e = (l)=>{
|
|
233
|
+
!o && u && c && (l.clientX < c.left || l.clientX > c.right || l.clientY < c.top || l.clientY > c.bottom) && E();
|
|
234
234
|
};
|
|
235
235
|
return document.addEventListener("keydown", s, !1), document.addEventListener("keyup", r, !1), document.addEventListener("click", e, !1), ()=>{
|
|
236
236
|
document.removeEventListener("keydown", s, !1), document.removeEventListener("keyup", r, !1), document.removeEventListener("click", e, !1);
|
|
237
237
|
};
|
|
238
238
|
}, [
|
|
239
239
|
u,
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
E,
|
|
241
|
+
c,
|
|
242
242
|
o
|
|
243
243
|
]), i.useEffect(()=>{
|
|
244
|
-
|
|
244
|
+
q || (j || ot || rt ? _(m) : N(m));
|
|
245
245
|
}, [
|
|
246
|
-
|
|
247
|
-
et,
|
|
246
|
+
j,
|
|
248
247
|
ot,
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
rt,
|
|
249
|
+
m,
|
|
251
250
|
_,
|
|
252
|
-
|
|
251
|
+
N,
|
|
252
|
+
q
|
|
253
253
|
]);
|
|
254
|
-
const
|
|
255
|
-
return /* @__PURE__ */
|
|
254
|
+
const ut = pt(c, y, p, a.height, a.width), ht = w !== void 0 ? w : (H == null ? void 0 : H.width) === St;
|
|
255
|
+
return /* @__PURE__ */ B(Tt, {
|
|
256
256
|
children: [
|
|
257
257
|
/* @__PURE__ */ n("div", {
|
|
258
258
|
ref: (s)=>{
|
|
259
259
|
const r = s == null ? void 0 : s.firstElementChild;
|
|
260
|
-
r && r !==
|
|
260
|
+
r && r !== Y.current && (Y.current = r);
|
|
261
261
|
},
|
|
262
262
|
onMouseOver: ()=>{
|
|
263
|
-
!u && !o &&
|
|
263
|
+
!u && !o && L(!0);
|
|
264
264
|
},
|
|
265
265
|
onMouseLeave: ()=>{
|
|
266
|
-
!u && !o &&
|
|
266
|
+
!u && !o && L(!1);
|
|
267
267
|
},
|
|
268
268
|
onClick: ()=>{
|
|
269
|
-
(u || o) &&
|
|
269
|
+
(u || o) && L(o ? !j : !0);
|
|
270
270
|
},
|
|
271
271
|
onFocus: ()=>{
|
|
272
|
-
|
|
272
|
+
Q.current && !o && Z(!0);
|
|
273
273
|
},
|
|
274
274
|
onBlur: ()=>{
|
|
275
|
-
!u && !o &&
|
|
275
|
+
!u && !o && Z(!1);
|
|
276
276
|
},
|
|
277
|
-
"aria-describedby":
|
|
277
|
+
"aria-describedby": m,
|
|
278
278
|
children: h
|
|
279
279
|
}),
|
|
280
|
-
/* @__PURE__ */ n(
|
|
281
|
-
children: /* @__PURE__ */ n(
|
|
282
|
-
in:
|
|
283
|
-
nodeRef:
|
|
284
|
-
timeout:
|
|
285
|
-
enter:
|
|
286
|
-
exit:
|
|
280
|
+
/* @__PURE__ */ n(bt, {
|
|
281
|
+
children: /* @__PURE__ */ n(Mt, {
|
|
282
|
+
in: M,
|
|
283
|
+
nodeRef: G,
|
|
284
|
+
timeout: Xt() ? 0 : {
|
|
285
|
+
enter: Gt + K,
|
|
286
|
+
exit: Ut
|
|
287
287
|
},
|
|
288
288
|
onExited: ()=>{
|
|
289
|
-
b(void 0),
|
|
289
|
+
b(void 0), P(void 0);
|
|
290
290
|
},
|
|
291
291
|
mountOnEnter: !0,
|
|
292
292
|
unmountOnExit: !0,
|
|
@@ -296,56 +296,56 @@ const lt = (t)=>({
|
|
|
296
296
|
* Hack to prevent text from wrapping automatically when touching the viewport's edges,
|
|
297
297
|
* even if the content's width didn't reach the max width.
|
|
298
298
|
* https://stackoverflow.com/questions/66106629/how-to-disable-text-wrapping-when-viewport-border-is-reached
|
|
299
|
-
*/ width: `calc(100vw + ${
|
|
299
|
+
*/ width: `calc(100vw + ${ft}px)`,
|
|
300
300
|
top: 0,
|
|
301
301
|
left: 0,
|
|
302
302
|
position: "fixed",
|
|
303
303
|
visibility: T ? "visible" : "hidden"
|
|
304
304
|
}
|
|
305
|
-
},
|
|
305
|
+
}, d), {
|
|
306
306
|
role: "tooltip",
|
|
307
|
-
"aria-label":
|
|
307
|
+
"aria-label": m,
|
|
308
308
|
tabIndex: -1,
|
|
309
309
|
children: /* @__PURE__ */ n("div", {
|
|
310
|
-
className:
|
|
310
|
+
className: tt(wt),
|
|
311
311
|
style: _object_spread_props(_object_spread({
|
|
312
312
|
pointerEvents: s === "entered" ? "auto" : "none",
|
|
313
|
-
transform:
|
|
314
|
-
}, T,
|
|
315
|
-
transition: s === "entering" ? `opacity .1s linear ${
|
|
313
|
+
transform: jt(ut)
|
|
314
|
+
}, T, It[s]), {
|
|
315
|
+
transition: s === "entering" ? `opacity .1s linear ${K}ms,transform .3s cubic-bezier(0.215,0.61,0.335,1) ${K}ms` : "opacity .1s linear"
|
|
316
316
|
}),
|
|
317
|
-
ref:
|
|
317
|
+
ref: Wt(mt, G),
|
|
318
318
|
onMouseEnter: ()=>{
|
|
319
|
-
!u && s === "entered" && !o &&
|
|
319
|
+
!u && s === "entered" && !o && U(!0);
|
|
320
320
|
},
|
|
321
321
|
onMouseLeave: ()=>{
|
|
322
|
-
!u && !o &&
|
|
322
|
+
!u && !o && U(!1);
|
|
323
323
|
},
|
|
324
|
-
children: /* @__PURE__ */
|
|
325
|
-
className:
|
|
324
|
+
children: /* @__PURE__ */ B("div", {
|
|
325
|
+
className: Ot,
|
|
326
326
|
style: _object_spread_props(_object_spread({
|
|
327
327
|
width: v
|
|
328
|
-
},
|
|
329
|
-
maxWidth: Math.min(
|
|
328
|
+
}, ct(J)), {
|
|
329
|
+
maxWidth: Math.min(ft, a.width)
|
|
330
330
|
}),
|
|
331
331
|
children: [
|
|
332
332
|
/* @__PURE__ */ n("div", {
|
|
333
|
-
className:
|
|
334
|
-
[
|
|
333
|
+
className: tt(Rt, {
|
|
334
|
+
[_t]: ht
|
|
335
335
|
}),
|
|
336
|
-
children: /* @__PURE__ */
|
|
336
|
+
children: /* @__PURE__ */ B(Bt, {
|
|
337
337
|
isInverse: !1,
|
|
338
338
|
children: [
|
|
339
339
|
t,
|
|
340
|
-
|
|
341
|
-
className:
|
|
342
|
-
children: /* @__PURE__ */ n(
|
|
340
|
+
V && /* @__PURE__ */ n("div", {
|
|
341
|
+
className: Nt,
|
|
342
|
+
children: /* @__PURE__ */ n(zt, {
|
|
343
343
|
onPress: ()=>{
|
|
344
|
-
|
|
344
|
+
L(!1), V();
|
|
345
345
|
},
|
|
346
346
|
trackingEvent: O,
|
|
347
|
-
"aria-label": R.
|
|
348
|
-
Icon:
|
|
347
|
+
"aria-label": I !== null && I !== void 0 ? I : R.closeButtonLabel,
|
|
348
|
+
Icon: Pt,
|
|
349
349
|
small: !0
|
|
350
350
|
})
|
|
351
351
|
})
|
|
@@ -353,11 +353,11 @@ const lt = (t)=>({
|
|
|
353
353
|
})
|
|
354
354
|
}),
|
|
355
355
|
/* @__PURE__ */ n("div", {
|
|
356
|
-
className:
|
|
357
|
-
style:
|
|
356
|
+
className: Ct,
|
|
357
|
+
style: z,
|
|
358
358
|
children: /* @__PURE__ */ n("div", {
|
|
359
|
-
className:
|
|
360
|
-
style:
|
|
359
|
+
className: tt(yt),
|
|
360
|
+
style: ct(J)
|
|
361
361
|
})
|
|
362
362
|
})
|
|
363
363
|
]
|
|
@@ -368,8 +368,8 @@ const lt = (t)=>({
|
|
|
368
368
|
})
|
|
369
369
|
]
|
|
370
370
|
});
|
|
371
|
-
},
|
|
372
|
-
var { centerContent: t, extra: h, children: v, dataAttributes:
|
|
371
|
+
}, Zt = (_param)=>{
|
|
372
|
+
var { centerContent: t, extra: h, children: v, dataAttributes: p, title: d, description: x } = _param, w = _object_without_properties(_param, [
|
|
373
373
|
"centerContent",
|
|
374
374
|
"extra",
|
|
375
375
|
"children",
|
|
@@ -377,18 +377,18 @@ const lt = (t)=>({
|
|
|
377
377
|
"title",
|
|
378
378
|
"description"
|
|
379
379
|
]);
|
|
380
|
-
return /* @__PURE__ */ n(
|
|
381
|
-
content: /* @__PURE__ */
|
|
382
|
-
className:
|
|
380
|
+
return /* @__PURE__ */ n(qt, _object_spread({
|
|
381
|
+
content: /* @__PURE__ */ B(Yt, {
|
|
382
|
+
className: Et,
|
|
383
383
|
children: [
|
|
384
|
-
(
|
|
384
|
+
(d || x) && /* @__PURE__ */ B(Lt, {
|
|
385
385
|
space: 4,
|
|
386
386
|
children: [
|
|
387
|
-
|
|
387
|
+
d && /* @__PURE__ */ n(at, {
|
|
388
388
|
medium: !0,
|
|
389
|
-
children:
|
|
389
|
+
children: d
|
|
390
390
|
}),
|
|
391
|
-
x && /* @__PURE__ */ n(
|
|
391
|
+
x && /* @__PURE__ */ n(at, {
|
|
392
392
|
regular: !0,
|
|
393
393
|
children: x
|
|
394
394
|
})
|
|
@@ -400,7 +400,7 @@ const lt = (t)=>({
|
|
|
400
400
|
centerContent: t,
|
|
401
401
|
dataAttributes: _object_spread({
|
|
402
402
|
"component-name": "Tooltip"
|
|
403
|
-
},
|
|
404
|
-
},
|
|
405
|
-
},
|
|
406
|
-
export {
|
|
403
|
+
}, p)
|
|
404
|
+
}, w));
|
|
405
|
+
}, ve = Zt;
|
|
406
|
+
export { qt as BaseTooltip, ve as default };
|