@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/tooltip.js
CHANGED
|
@@ -11,10 +11,10 @@ function _export(target, all) {
|
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
13
|
BaseTooltip: function() {
|
|
14
|
-
return
|
|
14
|
+
return qt;
|
|
15
15
|
},
|
|
16
16
|
default: function() {
|
|
17
|
-
return
|
|
17
|
+
return ve;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -163,91 +163,91 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
163
163
|
}
|
|
164
164
|
return target;
|
|
165
165
|
}
|
|
166
|
-
const
|
|
166
|
+
const ct = (t)=>({
|
|
167
167
|
border: `1px solid ${t ? _skincontractcssmistica.vars.colors.backgroundContainer : _skincontractcssmistica.vars.colors.border}`
|
|
168
|
-
}),
|
|
168
|
+
}), ft = 496, Gt = 300, Kt = 500, Ut = 100, f = 20, S = 6, C = S + f / 2 + 1, jt = (t)=>{
|
|
169
169
|
switch(t){
|
|
170
170
|
case "left":
|
|
171
|
-
return `translateX(-${
|
|
171
|
+
return `translateX(-${S}px)`;
|
|
172
172
|
case "right":
|
|
173
|
-
return `translateX(${
|
|
173
|
+
return `translateX(${S}px)`;
|
|
174
174
|
case "top":
|
|
175
|
-
return `translateY(-${
|
|
175
|
+
return `translateY(-${S}px)`;
|
|
176
176
|
case "bottom":
|
|
177
|
-
return `translateY(${
|
|
177
|
+
return `translateY(${S}px)`;
|
|
178
178
|
default:
|
|
179
179
|
return "";
|
|
180
180
|
}
|
|
181
|
-
},
|
|
182
|
-
const h = parseFloat(getComputedStyle(t, null).paddingLeft) + parseFloat(getComputedStyle(t, null).paddingRight), v = parseFloat(getComputedStyle(t, null).paddingTop) + parseFloat(getComputedStyle(t, null).paddingBottom),
|
|
181
|
+
}, dt = (t)=>{
|
|
182
|
+
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;
|
|
183
183
|
return {
|
|
184
|
-
width:
|
|
185
|
-
height:
|
|
184
|
+
width: p,
|
|
185
|
+
height: d
|
|
186
186
|
};
|
|
187
|
-
},
|
|
187
|
+
}, pt = (t, h, v, p, d)=>{
|
|
188
188
|
if (!t || !h) return;
|
|
189
|
-
const { top: x, bottom:
|
|
190
|
-
if (!(!
|
|
189
|
+
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);
|
|
190
|
+
if (!(!b && !T)) switch(v){
|
|
191
191
|
case "left":
|
|
192
|
-
return
|
|
192
|
+
return T ? _ <= R ? "left" : "right" : I > O ? "bottom" : "top";
|
|
193
193
|
case "right":
|
|
194
|
-
return
|
|
194
|
+
return T ? _ <= o ? "right" : "left" : I > O ? "bottom" : "top";
|
|
195
195
|
case "top":
|
|
196
|
-
return
|
|
196
|
+
return b ? N <= O ? "top" : "bottom" : R > o ? "left" : "right";
|
|
197
197
|
case "bottom":
|
|
198
|
-
return
|
|
198
|
+
return b ? N <= I ? "bottom" : "top" : R > o ? "left" : "right";
|
|
199
199
|
default:
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
|
-
},
|
|
203
|
-
let { content: t, target: h, width: v, position:
|
|
204
|
-
const { texts: R } = (0, _hooks.useTheme)(),
|
|
205
|
-
|
|
202
|
+
}, qt = (param)=>{
|
|
203
|
+
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;
|
|
204
|
+
const { texts: R } = (0, _hooks.useTheme)(), m = (0, _hooks.useAriaId)(), { openTooltipId: X } = (0, _tooltipcontextprovider.useTooltipState)(), { openTooltip: _, closeTooltip: N } = (0, _tooltipcontextprovider.useSetTooltipState)(), [T, b] = _react.useState(), [z, P] = _react.useState(), Y = _react.useRef(null), G = _react.useRef(null), [y, mt] = _react.useState(null), u = (0, _environment.isTouchableDevice)(), K = x ? Kt : 0, [ot, U] = _react.useState(!1), [j, L] = _react.useState(!1), q = W !== void 0, [rt, Z] = _react.useState(!1), M = q ? W : m === X, J = (0, _themevariantcontext.useIsInverseVariant)(), c = (0, _hooks.useBoundingRect)(Y, M), H = (0, _hooks.useBoundingRect)(G, M, !0), a = (0, _hooks.useWindowSize)(), E = _react.useCallback(()=>{
|
|
205
|
+
Z(!1), U(!1), L(!1);
|
|
206
206
|
}, []);
|
|
207
207
|
_react.useEffect(()=>{
|
|
208
|
-
|
|
208
|
+
M || E();
|
|
209
209
|
}, [
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
M,
|
|
211
|
+
E
|
|
212
212
|
]), _react.useEffect(()=>{
|
|
213
|
-
if (!
|
|
214
|
-
const s =
|
|
215
|
-
if (!s || !
|
|
216
|
-
b(void 0),
|
|
213
|
+
if (!y || !M) return;
|
|
214
|
+
const s = pt(c, y, p, a.height, a.width);
|
|
215
|
+
if (!s || !c) {
|
|
216
|
+
b(void 0), P(void 0), E();
|
|
217
217
|
return;
|
|
218
218
|
}
|
|
219
219
|
let r, e;
|
|
220
220
|
var _parseInt;
|
|
221
|
-
const { left:
|
|
221
|
+
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((0, _dom.getCssVarValue)(_skincontractcssmistica.vars.borderRadii.popup))) !== null && _parseInt !== void 0 ? _parseInt : 8;
|
|
222
222
|
switch(s){
|
|
223
223
|
case "top":
|
|
224
224
|
r = {
|
|
225
|
-
left: Math.max(0, Math.min(
|
|
226
|
-
top:
|
|
227
|
-
padding: `0px 0px ${
|
|
225
|
+
left: Math.max(0, Math.min(st, (l + k - F) / 2)),
|
|
226
|
+
top: A - D - f / 2,
|
|
227
|
+
padding: `0px 0px ${C}px 0px`
|
|
228
228
|
}, e = {
|
|
229
|
-
left: Math.max(g, Math.min(
|
|
229
|
+
left: Math.max(g, Math.min(a.width - g - f, (l + k - f) / 2)),
|
|
230
230
|
top: "100%"
|
|
231
231
|
};
|
|
232
232
|
break;
|
|
233
233
|
case "bottom":
|
|
234
234
|
r = {
|
|
235
|
-
left: Math.max(0, Math.min(
|
|
236
|
-
top:
|
|
237
|
-
padding: `${
|
|
235
|
+
left: Math.max(0, Math.min(st, (l + k - F) / 2)),
|
|
236
|
+
top: $ - S,
|
|
237
|
+
padding: `${C}px 0px 0px 0px`
|
|
238
238
|
}, e = {
|
|
239
|
-
left: Math.max(g, Math.min(
|
|
239
|
+
left: Math.max(g, Math.min(a.width - g - f, (l + k - f) / 2)),
|
|
240
240
|
bottom: "100%",
|
|
241
241
|
transform: "rotate(180deg)"
|
|
242
242
|
};
|
|
243
243
|
break;
|
|
244
244
|
case "left":
|
|
245
245
|
r = {
|
|
246
|
-
left:
|
|
247
|
-
top: Math.max(0, Math.min(
|
|
248
|
-
padding: `0px ${
|
|
246
|
+
left: l - F - f / 2,
|
|
247
|
+
top: Math.max(0, Math.min(it, (A + $ - D) / 2)),
|
|
248
|
+
padding: `0px ${C}px 0px 0px`
|
|
249
249
|
}, e = {
|
|
250
|
-
top: Math.max(g, Math.min(
|
|
250
|
+
top: Math.max(g, Math.min(a.height - g - f, (A + $ - f) / 2)),
|
|
251
251
|
left: "100%",
|
|
252
252
|
transform: "rotate(-90deg)",
|
|
253
253
|
transformOrigin: "bottom"
|
|
@@ -256,101 +256,101 @@ const lt = (t)=>({
|
|
|
256
256
|
case "right":
|
|
257
257
|
default:
|
|
258
258
|
r = {
|
|
259
|
-
left: k -
|
|
260
|
-
top: Math.max(0, Math.min(
|
|
261
|
-
padding: `0px 0px 0px ${
|
|
259
|
+
left: k - S,
|
|
260
|
+
top: Math.max(0, Math.min(it, (A + $ - D) / 2)),
|
|
261
|
+
padding: `0px 0px 0px ${C}px`
|
|
262
262
|
}, e = {
|
|
263
|
-
top: Math.max(g, Math.min(
|
|
263
|
+
top: Math.max(g, Math.min(a.height - g - f, (A + $ - f) / 2)),
|
|
264
264
|
right: "100%",
|
|
265
265
|
transform: "rotate(90deg)",
|
|
266
266
|
transformOrigin: "bottom"
|
|
267
267
|
};
|
|
268
268
|
break;
|
|
269
269
|
}
|
|
270
|
-
typeof e.top == "number" && (e.top -= r.top, e.top = `${e.top /
|
|
270
|
+
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}%`), (0, _helpers.isEqual)(r, T) || b(r), (0, _helpers.isEqual)(e, z) || P(e);
|
|
271
271
|
}, [
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
y,
|
|
273
|
+
c,
|
|
274
274
|
H,
|
|
275
|
-
E,
|
|
276
|
-
d,
|
|
277
|
-
l,
|
|
278
|
-
T,
|
|
279
275
|
M,
|
|
280
|
-
|
|
281
|
-
u,
|
|
276
|
+
p,
|
|
282
277
|
a,
|
|
283
|
-
|
|
278
|
+
T,
|
|
279
|
+
z,
|
|
280
|
+
J,
|
|
281
|
+
u,
|
|
282
|
+
m,
|
|
283
|
+
E
|
|
284
284
|
]);
|
|
285
|
-
const
|
|
285
|
+
const Q = _react.useRef(!1);
|
|
286
286
|
_react.useEffect(()=>{
|
|
287
|
-
const s = (
|
|
288
|
-
switch(
|
|
287
|
+
const s = (l)=>{
|
|
288
|
+
switch(l.key){
|
|
289
289
|
case _keys.ESC:
|
|
290
|
-
o ||
|
|
290
|
+
o || E();
|
|
291
291
|
break;
|
|
292
292
|
case _keys.TAB:
|
|
293
|
-
|
|
293
|
+
Q.current = !0;
|
|
294
294
|
break;
|
|
295
295
|
}
|
|
296
|
-
}, r = ()=>
|
|
297
|
-
!o && u &&
|
|
296
|
+
}, r = ()=>Q.current = !1, e = (l)=>{
|
|
297
|
+
!o && u && c && (l.clientX < c.left || l.clientX > c.right || l.clientY < c.top || l.clientY > c.bottom) && E();
|
|
298
298
|
};
|
|
299
299
|
return document.addEventListener("keydown", s, !1), document.addEventListener("keyup", r, !1), document.addEventListener("click", e, !1), ()=>{
|
|
300
300
|
document.removeEventListener("keydown", s, !1), document.removeEventListener("keyup", r, !1), document.removeEventListener("click", e, !1);
|
|
301
301
|
};
|
|
302
302
|
}, [
|
|
303
303
|
u,
|
|
304
|
-
|
|
305
|
-
|
|
304
|
+
E,
|
|
305
|
+
c,
|
|
306
306
|
o
|
|
307
307
|
]), _react.useEffect(()=>{
|
|
308
|
-
|
|
308
|
+
q || (j || ot || rt ? _(m) : N(m));
|
|
309
309
|
}, [
|
|
310
|
-
|
|
311
|
-
et,
|
|
310
|
+
j,
|
|
312
311
|
ot,
|
|
313
|
-
|
|
314
|
-
|
|
312
|
+
rt,
|
|
313
|
+
m,
|
|
315
314
|
_,
|
|
316
|
-
|
|
315
|
+
N,
|
|
316
|
+
q
|
|
317
317
|
]);
|
|
318
|
-
const
|
|
318
|
+
const ut = pt(c, y, p, a.height, a.width), ht = w !== void 0 ? w : (H == null ? void 0 : H.width) === _tooltipcssmistica.CONTENT_MIN_WIDTH;
|
|
319
319
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
320
320
|
children: [
|
|
321
321
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
322
322
|
ref: (s)=>{
|
|
323
323
|
const r = s == null ? void 0 : s.firstElementChild;
|
|
324
|
-
r && r !==
|
|
324
|
+
r && r !== Y.current && (Y.current = r);
|
|
325
325
|
},
|
|
326
326
|
onMouseOver: ()=>{
|
|
327
|
-
!u && !o &&
|
|
327
|
+
!u && !o && L(!0);
|
|
328
328
|
},
|
|
329
329
|
onMouseLeave: ()=>{
|
|
330
|
-
!u && !o &&
|
|
330
|
+
!u && !o && L(!1);
|
|
331
331
|
},
|
|
332
332
|
onClick: ()=>{
|
|
333
|
-
(u || o) &&
|
|
333
|
+
(u || o) && L(o ? !j : !0);
|
|
334
334
|
},
|
|
335
335
|
onFocus: ()=>{
|
|
336
|
-
|
|
336
|
+
Q.current && !o && Z(!0);
|
|
337
337
|
},
|
|
338
338
|
onBlur: ()=>{
|
|
339
|
-
!u && !o &&
|
|
339
|
+
!u && !o && Z(!1);
|
|
340
340
|
},
|
|
341
|
-
"aria-describedby":
|
|
341
|
+
"aria-describedby": m,
|
|
342
342
|
children: h
|
|
343
343
|
}),
|
|
344
344
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_portal.Portal, {
|
|
345
345
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_reacttransitiongroup.Transition, {
|
|
346
|
-
in:
|
|
347
|
-
nodeRef:
|
|
346
|
+
in: M,
|
|
347
|
+
nodeRef: G,
|
|
348
348
|
timeout: (0, _platform.isRunningAcceptanceTest)() ? 0 : {
|
|
349
|
-
enter:
|
|
350
|
-
exit:
|
|
349
|
+
enter: Gt + K,
|
|
350
|
+
exit: Ut
|
|
351
351
|
},
|
|
352
352
|
onExited: ()=>{
|
|
353
|
-
b(void 0),
|
|
353
|
+
b(void 0), P(void 0);
|
|
354
354
|
},
|
|
355
355
|
mountOnEnter: !0,
|
|
356
356
|
unmountOnExit: !0,
|
|
@@ -360,55 +360,55 @@ const lt = (t)=>({
|
|
|
360
360
|
* Hack to prevent text from wrapping automatically when touching the viewport's edges,
|
|
361
361
|
* even if the content's width didn't reach the max width.
|
|
362
362
|
* https://stackoverflow.com/questions/66106629/how-to-disable-text-wrapping-when-viewport-border-is-reached
|
|
363
|
-
*/ width: `calc(100vw + ${
|
|
363
|
+
*/ width: `calc(100vw + ${ft}px)`,
|
|
364
364
|
top: 0,
|
|
365
365
|
left: 0,
|
|
366
366
|
position: "fixed",
|
|
367
367
|
visibility: T ? "visible" : "hidden"
|
|
368
368
|
}
|
|
369
|
-
},
|
|
369
|
+
}, d), {
|
|
370
370
|
role: "tooltip",
|
|
371
|
-
"aria-label":
|
|
371
|
+
"aria-label": m,
|
|
372
372
|
tabIndex: -1,
|
|
373
373
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
374
374
|
className: (0, _classnames.default)(_tooltipcssmistica.container),
|
|
375
375
|
style: _object_spread_props(_object_spread({
|
|
376
376
|
pointerEvents: s === "entered" ? "auto" : "none",
|
|
377
|
-
transform:
|
|
377
|
+
transform: jt(ut)
|
|
378
378
|
}, T, _tooltipcssmistica.tooltipTransitionClasses[s]), {
|
|
379
|
-
transition: s === "entering" ? `opacity .1s linear ${
|
|
379
|
+
transition: s === "entering" ? `opacity .1s linear ${K}ms,transform .3s cubic-bezier(0.215,0.61,0.335,1) ${K}ms` : "opacity .1s linear"
|
|
380
380
|
}),
|
|
381
|
-
ref: (0, _common.combineRefs)(
|
|
381
|
+
ref: (0, _common.combineRefs)(mt, G),
|
|
382
382
|
onMouseEnter: ()=>{
|
|
383
|
-
!u && s === "entered" && !o &&
|
|
383
|
+
!u && s === "entered" && !o && U(!0);
|
|
384
384
|
},
|
|
385
385
|
onMouseLeave: ()=>{
|
|
386
|
-
!u && !o &&
|
|
386
|
+
!u && !o && U(!1);
|
|
387
387
|
},
|
|
388
388
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
389
389
|
className: _tooltipcssmistica.tooltip,
|
|
390
390
|
style: _object_spread_props(_object_spread({
|
|
391
391
|
width: v
|
|
392
|
-
},
|
|
393
|
-
maxWidth: Math.min(
|
|
392
|
+
}, ct(J)), {
|
|
393
|
+
maxWidth: Math.min(ft, a.width)
|
|
394
394
|
}),
|
|
395
395
|
children: [
|
|
396
396
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
397
397
|
className: (0, _classnames.default)(_tooltipcssmistica.contentContainer, {
|
|
398
|
-
[_tooltipcssmistica.tooltipCenter]:
|
|
398
|
+
[_tooltipcssmistica.tooltipCenter]: ht
|
|
399
399
|
}),
|
|
400
400
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_themevariantcontext.ThemeVariant, {
|
|
401
401
|
isInverse: !1,
|
|
402
402
|
children: [
|
|
403
403
|
t,
|
|
404
|
-
|
|
404
|
+
V && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
405
405
|
className: _tooltipcssmistica.closeButtonIcon,
|
|
406
406
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.IconButton, {
|
|
407
407
|
onPress: ()=>{
|
|
408
|
-
|
|
408
|
+
L(!1), V();
|
|
409
409
|
},
|
|
410
410
|
trackingEvent: O,
|
|
411
|
-
"aria-label": R.
|
|
411
|
+
"aria-label": I !== null && I !== void 0 ? I : R.closeButtonLabel,
|
|
412
412
|
Icon: _iconcloseregular.default,
|
|
413
413
|
small: !0
|
|
414
414
|
})
|
|
@@ -418,10 +418,10 @@ const lt = (t)=>({
|
|
|
418
418
|
}),
|
|
419
419
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
420
420
|
className: _tooltipcssmistica.arrowContainer,
|
|
421
|
-
style:
|
|
421
|
+
style: z,
|
|
422
422
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
423
423
|
className: (0, _classnames.default)(_tooltipcssmistica.arrow),
|
|
424
|
-
style:
|
|
424
|
+
style: ct(J)
|
|
425
425
|
})
|
|
426
426
|
})
|
|
427
427
|
]
|
|
@@ -432,8 +432,8 @@ const lt = (t)=>({
|
|
|
432
432
|
})
|
|
433
433
|
]
|
|
434
434
|
});
|
|
435
|
-
},
|
|
436
|
-
var { centerContent: t, extra: h, children: v, dataAttributes:
|
|
435
|
+
}, Zt = (_param)=>{
|
|
436
|
+
var { centerContent: t, extra: h, children: v, dataAttributes: p, title: d, description: x } = _param, w = _object_without_properties(_param, [
|
|
437
437
|
"centerContent",
|
|
438
438
|
"extra",
|
|
439
439
|
"children",
|
|
@@ -441,16 +441,16 @@ const lt = (t)=>({
|
|
|
441
441
|
"title",
|
|
442
442
|
"description"
|
|
443
443
|
]);
|
|
444
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
444
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(qt, _object_spread({
|
|
445
445
|
content: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_box.default, {
|
|
446
446
|
className: _tooltipcssmistica.content,
|
|
447
447
|
children: [
|
|
448
|
-
(
|
|
448
|
+
(d || x) && /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
449
449
|
space: 4,
|
|
450
450
|
children: [
|
|
451
|
-
|
|
451
|
+
d && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
452
452
|
medium: !0,
|
|
453
|
-
children:
|
|
453
|
+
children: d
|
|
454
454
|
}),
|
|
455
455
|
x && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
456
456
|
regular: !0,
|
|
@@ -464,6 +464,6 @@ const lt = (t)=>({
|
|
|
464
464
|
centerContent: t,
|
|
465
465
|
dataAttributes: _object_spread({
|
|
466
466
|
"component-name": "Tooltip"
|
|
467
|
-
},
|
|
468
|
-
},
|
|
469
|
-
},
|
|
467
|
+
}, p)
|
|
468
|
+
}, w));
|
|
469
|
+
}, ve = Zt;
|
|
@@ -1,20 +1,38 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./button.css.ts.vanilla.css-mistica.js";
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
3
|
+
var r = "1.5px", f = {
|
|
4
|
+
default: "104px",
|
|
5
|
+
small: "80px"
|
|
6
|
+
}, y = {
|
|
7
|
+
default: "calc(16px - 1.5px)",
|
|
8
|
+
small: "calc(12px - 1.5px)"
|
|
9
|
+
}, _ = {
|
|
10
|
+
default: "calc(12px - 1.5px)",
|
|
11
|
+
small: "calc(6px - 1.5px)"
|
|
12
|
+
}, a = {
|
|
13
|
+
primary: "rrbrpnm rrbrpn3 _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfho _1y2v1nfhe _1y2v1nfi8 _1y2v1nfk9 _1y2v1nfkl _1y2v1nf2c _1y2v1nf4l",
|
|
14
|
+
secondary: "rrbrpnn rrbrpn3 _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfho _1y2v1nfhe _1y2v1nfi8 _1y2v1nfk9 _1y2v1nfkl _1y2v1nf2f _1y2v1nf7c",
|
|
15
|
+
danger: "rrbrpno rrbrpn3 _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfho _1y2v1nfhe _1y2v1nfi8 _1y2v1nfk9 _1y2v1nfkl _1y2v1nf2c _1y2v1nf4d",
|
|
16
|
+
link: "rrbrpnp rrbrpn4 rrbrpn3 _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfho _1y2v1nfhe _1y2v1nfi8 _1y2v1nfk9 _1y2v1nfkl _1y2v1nf2j _1y2v1nf7c",
|
|
17
|
+
linkDanger: "rrbrpnq rrbrpn4 rrbrpn3 _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfho _1y2v1nfhe _1y2v1nfi8 _1y2v1nfk9 _1y2v1nfkl _1y2v1nf2l _1y2v1nf7c",
|
|
18
|
+
linkDangerDark: "rrbrpnr rrbrpn4 rrbrpn3 _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfho _1y2v1nfhe _1y2v1nfi8 _1y2v1nfk9 _1y2v1nfkl _1y2v1nf2l _1y2v1nf7c"
|
|
19
|
+
}, p = {
|
|
20
|
+
minWidth: "var(--rrbrpn0)"
|
|
21
|
+
}, b = "2px", l = "8px", i = {
|
|
22
|
+
default: "1.500rem",
|
|
23
|
+
small: "1.250rem"
|
|
24
|
+
}, e = {
|
|
25
|
+
primary: "rrbrpns rrbrpn3 _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfho _1y2v1nfhe _1y2v1nfi8 _1y2v1nfk9 _1y2v1nfkl _1y2v1nf2d _1y2v1nf4m",
|
|
26
|
+
secondary: "rrbrpnt rrbrpn3 _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfho _1y2v1nfhe _1y2v1nfi8 _1y2v1nfk9 _1y2v1nfkl _1y2v1nf2h _1y2v1nf7c",
|
|
27
|
+
danger: "rrbrpnu rrbrpn3 _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfho _1y2v1nfhe _1y2v1nfi8 _1y2v1nfk9 _1y2v1nfkl _1y2v1nf2c _1y2v1nf4d",
|
|
28
|
+
link: "rrbrpnv rrbrpn4 rrbrpn3 _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfho _1y2v1nfhe _1y2v1nfi8 _1y2v1nfk9 _1y2v1nfkl _1y2v1nf2k _1y2v1nf7c",
|
|
29
|
+
linkDanger: "rrbrpnw rrbrpn4 rrbrpn3 _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfho _1y2v1nfhe _1y2v1nfi8 _1y2v1nfk9 _1y2v1nfkl _1y2v1nf2l _1y2v1nf4h",
|
|
30
|
+
linkDangerDark: "rrbrpnx rrbrpn4 rrbrpn3 _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfho _1y2v1nfhe _1y2v1nfi8 _1y2v1nfk9 _1y2v1nfkl _1y2v1nf2l _1y2v1nf7c"
|
|
31
|
+
}, h = "rrbrpn1", k = {
|
|
32
|
+
default: "40px",
|
|
33
|
+
small: "40px"
|
|
34
|
+
}, d = "rrbrpn9 _1y2v1nfhl _1y2v1nfhf _1y2v1nfkr _1y2v1nfm0 _1y2v1nfht _1y2v1nfhz", t = "rrbrpn7 _1y2v1nfhm _1y2v1nfip _1y2v1nfkl", o = "rrbrpn5", m = {
|
|
35
|
+
default: "1.250rem",
|
|
36
|
+
small: "1.000rem"
|
|
37
|
+
}, c = "rrbrpnb _1y2v1nfhk _1y2v1nfhz _1y2v1nfht";
|
|
38
|
+
export { r as borderSize, f as buttonMinWidth, y as buttonPaddingX, _ as buttonPaddingY, a as buttonVariants, p as buttonVars, b as chevronMarginLeft, l as iconMargin, i as iconSize, e as inverseButtonVariants, h as isLoading, k as linkMinWidth, d as loadingContent, t as loadingFiller, o as small, m as spinnerSize, c as textContent };
|