@telefonica/mistica 14.24.1 → 14.25.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/dist/slider.js ADDED
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return ee;
9
+ }
10
+ });
11
+ const _jsxruntime = require("react/jsx-runtime");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
13
+ const _hooks = require("./hooks.js");
14
+ const _slidercssmistica = require("./slider.css-mistica.js");
15
+ const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
16
+ const _tooltip = /*#__PURE__*/ _interop_require_default(require("./tooltip.js"));
17
+ function _interop_require_default(obj) {
18
+ return obj && obj.__esModule ? obj : {
19
+ default: obj
20
+ };
21
+ }
22
+ function _getRequireWildcardCache(nodeInterop) {
23
+ if (typeof WeakMap !== "function") return null;
24
+ var cacheBabelInterop = new WeakMap();
25
+ var cacheNodeInterop = new WeakMap();
26
+ return (_getRequireWildcardCache = function(nodeInterop) {
27
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
28
+ })(nodeInterop);
29
+ }
30
+ function _interop_require_wildcard(obj, nodeInterop) {
31
+ if (!nodeInterop && obj && obj.__esModule) {
32
+ return obj;
33
+ }
34
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
35
+ return {
36
+ default: obj
37
+ };
38
+ }
39
+ var cache = _getRequireWildcardCache(nodeInterop);
40
+ if (cache && cache.has(obj)) {
41
+ return cache.get(obj);
42
+ }
43
+ var newObj = {};
44
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
45
+ for(var key in obj){
46
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
47
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
48
+ if (desc && (desc.get || desc.set)) {
49
+ Object.defineProperty(newObj, key, desc);
50
+ } else {
51
+ newObj[key] = obj[key];
52
+ }
53
+ }
54
+ }
55
+ newObj.default = obj;
56
+ if (cache) {
57
+ cache.set(obj, newObj);
58
+ }
59
+ return newObj;
60
+ }
61
+ const K = (param)=>{
62
+ let { disabled: u , steps: t = 1 , max: a = 100 , min: l = 0 , value: o , onChange: d , getStepArrayIndex: f , "arial-label": A , tooltip: $ } = param;
63
+ const { isIos: w } = (0, _hooks.useTheme)(), { isTabletOrSmaller: k } = (0, _hooks.useScreenSize)(), [i, g] = _react.useState(l), [m, C] = _react.useState(l), [b, M] = _react.useState(a), [N, O] = _react.useState(1), h = _react.useRef(null), P = _react.useMemo(()=>u ? "0.5" : "1", [
64
+ u
65
+ ]), j = 0, p = "50%", v = _react.useMemo(()=>u && _slidercssmistica.sliderDisabled, [
66
+ u
67
+ ]), y = _react.useCallback(function() {
68
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
69
+ if (!h.current) return;
70
+ const s = h.current.getBoundingClientRect(), n = Number(Math.abs(i - m) * 100 / (b - m)), S = 0.2 + (window.innerWidth - s.right) / 100 + (s.left - 0) / 100, x = e ? s.left - 10 - n * S : 10 - n * 0.2;
71
+ return `calc(${n}% + (${x}px))`;
72
+ }, [
73
+ i,
74
+ m,
75
+ b
76
+ ]), T = _react.useCallback((e)=>{
77
+ let s = e;
78
+ return Array.isArray(t) && (s = t.reduce((n, S)=>Math.abs(S - e) < Math.abs(n - e) ? S : n)), s;
79
+ }, [
80
+ t
81
+ ]), D = _react.useCallback(()=>{
82
+ Array.isArray(t) && t.sort((e, s)=>e - s);
83
+ }, [
84
+ t
85
+ ]), E = (e)=>{
86
+ g(e);
87
+ };
88
+ _react.useEffect(()=>{
89
+ d == null || d(i), f == null || f(i);
90
+ }, [
91
+ d,
92
+ f,
93
+ i
94
+ ]), _react.useEffect(()=>{
95
+ if (Array.isArray(t)) {
96
+ M(t.length - 1);
97
+ let e = 0;
98
+ o !== void 0 && (e = t.indexOf(T(o))), g(e);
99
+ } else {
100
+ C(l), M(a);
101
+ let e = l;
102
+ o !== void 0 && (l > o || o > a) && (e = a < o ? a : l), g(e), O(t);
103
+ }
104
+ }, [
105
+ t,
106
+ a,
107
+ l,
108
+ T,
109
+ o,
110
+ N,
111
+ D
112
+ ]);
113
+ const R = ()=>/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
114
+ className: _slidercssmistica.targetContainer,
115
+ children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
116
+ ref: h,
117
+ style: {
118
+ opacity: P,
119
+ paddingTop: j
120
+ },
121
+ className: _slidercssmistica.rangeSlider,
122
+ children: [
123
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("input", {
124
+ disabled: u,
125
+ style: {
126
+ top: p
127
+ },
128
+ className: (0, _classnames.default)(_slidercssmistica.sliderVariant[w ? "ios" : "default"], v),
129
+ "aria-label": "Slider",
130
+ type: "range",
131
+ min: m,
132
+ max: b,
133
+ value: i,
134
+ step: N,
135
+ onChange: (e)=>E(+e.target.value)
136
+ }),
137
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
138
+ style: {
139
+ left: y(),
140
+ top: p
141
+ },
142
+ className: (0, _classnames.default)(_slidercssmistica.sliderThumbVariant[w ? "ios" : "default"])
143
+ }),
144
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
145
+ className: _slidercssmistica.progress,
146
+ style: {
147
+ width: y(),
148
+ top: p
149
+ }
150
+ })
151
+ ]
152
+ })
153
+ });
154
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)("section", {
155
+ className: _slidercssmistica.container,
156
+ "aria-label": A,
157
+ children: $ ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_tooltip.default, {
158
+ description: Array.isArray(t) ? t[i].toString() : i.toString(),
159
+ width: k ? 42 : 45,
160
+ targetLabel: "",
161
+ textCenter: !0,
162
+ unstable_offsetX: y(!0),
163
+ targetStyle: {
164
+ width: "100%"
165
+ },
166
+ position: "top",
167
+ target: R()
168
+ }) : R()
169
+ });
170
+ }, ee = K;
@@ -34,13 +34,13 @@ _export(exports, {
34
34
  return b;
35
35
  },
36
36
  enterActive: function() {
37
- return o;
37
+ return x;
38
38
  },
39
39
  enterDone: function() {
40
- return x;
40
+ return h;
41
41
  },
42
42
  exit: function() {
43
- return h;
43
+ return o;
44
44
  },
45
45
  exitActive: function() {
46
46
  return y;
@@ -57,20 +57,23 @@ _export(exports, {
57
57
  textAlign: function() {
58
58
  return d;
59
59
  },
60
- vars: function() {
60
+ textCenter: function() {
61
61
  return c;
62
62
  },
63
- wrapper: function() {
63
+ vars: function() {
64
64
  return s;
65
+ },
66
+ wrapper: function() {
67
+ return A;
65
68
  }
66
69
  });
67
70
  require("./sprinkles.css.ts.vanilla.css-mistica.js");
68
71
  require("./tooltip.css.ts.vanilla.css-mistica.js");
69
- var v = "_1xhatbpb _1y2v1nfb1 _1y2v1nfec _1y2v1nfbz _1y2v1nfcf _1y2v1nfdq _1y2v1nf31 _1y2v1nfdn", t = "_1xhatbpe", n = "_1xhatbpf", _ = "_1xhatbpd", e = "_1xhatbpc", f = "_1y2v1nfb1 _1y2v1nfc2 _1y2v1nfcf _1y2v1nfe6 _1y2v1nf2", p = "_1xhatbpj _1y2v1nf68 _1y2v1nf7h _1y2v1nf8q _1y2v1nf9z _1y2v1nfb1 _1y2v1nfew _1y2v1nfbu _1y2v1nfdz _1y2v1nfdn", b = "_1xhatbpl", o = "_1xhatbpm", x = "_1xhatbpn", h = "_1xhatbpo", y = "_1xhatbpp", i = "_1xhatbp6", m = "_1xhatbp7", w = "_1xhatbp8", d = "_1xhatbpk", c = {
72
+ var v = "_1xhatbpb _1y2v1nfb1 _1y2v1nfec _1y2v1nfbz _1y2v1nfcf _1y2v1nfdq _1y2v1nf31 _1y2v1nfdn", t = "_1xhatbpe", n = "_1xhatbpf", _ = "_1xhatbpd", e = "_1xhatbpc", f = "_1y2v1nfb1 _1y2v1nfc2 _1y2v1nfcf _1y2v1nfe6 _1y2v1nf2", p = "_1xhatbpj _1y2v1nf68 _1y2v1nf7h _1y2v1nf8q _1y2v1nf9z _1y2v1nfb1 _1y2v1nfew _1y2v1nfbu _1y2v1nfdz _1y2v1nfdn", b = "_1xhatbpm", x = "_1xhatbpn", h = "_1xhatbpo", o = "_1xhatbpp", y = "_1xhatbpq", i = "_1xhatbp6", m = "_1xhatbp7", w = "_1xhatbp8", d = "_1xhatbpk", c = "_1xhatbpl", s = {
70
73
  shadowAlpha: "var(--_1xhatbp0)",
71
74
  enterTransform: "var(--_1xhatbp1)",
72
75
  enterDoneTransform: "var(--_1xhatbp2)",
73
76
  exitTransform: "var(--_1xhatbp3)",
74
77
  enterActiveAnimationName: "var(--_1xhatbp4)",
75
78
  arrowBoxShadow: "var(--_1xhatbp5)"
76
- }, s = "_1y2v1nfba";
79
+ }, A = "_1y2v1nfb7";
@@ -20,6 +20,7 @@ export declare const wrapper: string;
20
20
  export declare const tooltipMinWidth = 40;
21
21
  export declare const container: string;
22
22
  export declare const textAlign: string;
23
+ export declare const textCenter: string;
23
24
  export declare const enter: string;
24
25
  export declare const enterActive: string;
25
26
  export declare const enterDone: string;
package/dist/tooltip.d.ts CHANGED
@@ -13,7 +13,8 @@ type Props = {
13
13
  delay?: boolean;
14
14
  dataAttributes?: DataAttributes;
15
15
  targetStyle?: React.CSSProperties;
16
- unstable_offsetX?: number;
16
+ unstable_offsetX?: number | string;
17
+ textCenter?: boolean;
17
18
  };
18
19
  declare const Tooltip: React.FC<Props>;
19
20
  export default Tooltip;
package/dist/tooltip.js CHANGED
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  Object.defineProperty(exports, "default", {
6
6
  enumerable: true,
7
7
  get: function() {
8
- return oe;
8
+ return ae;
9
9
  }
10
10
  });
11
11
  const _jsxruntime = require("react/jsx-runtime");
@@ -145,8 +145,8 @@ function _object_without_properties_loose(source, excluded) {
145
145
  }
146
146
  return target;
147
147
  }
148
- const Dt = "bottom", Wt = "top", $t = 12, m = 4 + $t, Bt = 500, v = 12, Et = 500, M = ()=>{}, It = (r)=>r === "bottom" ? `translateY(${v}px)` : r === "top" ? `translateY(calc(-100% - ${v}px))` : r === "right" ? `translateX(${v}px) translateY(-50%)` : r === "left" ? `translateX(-${v}px) translateY(-50%)` : `translateY(-${v}px)`, Mt = (r)=>r === "top" ? "translateY(-100%)" : r === "bottom" ? "translateY(0)" : "translateY(-50%)", Nt = (r)=>r === "bottom" ? "translateY(0)" : r === "top" ? "translateY(-100%)" : r === "right" || r === "left" ? "translateX(0px) translateY(-50%)" : "translateY(0px)", kt = (r)=>r === "top" ? _tooltipcssmistica.fadeInTopKeyframes : r === "bottom" ? _tooltipcssmistica.fadeInBottomKeyframes : _tooltipcssmistica.fadeInXKeyframes, Lt = (r)=>r ? "1" : "0.2", Vt = (r)=>r === "top" ? `2px 2px 4px 0 rgba(0, 0, 0, ${_tooltipcssmistica.vars.shadowAlpha})` : r === "right" ? `0 0 4px 0 rgba(0, 0, 0, ${_tooltipcssmistica.vars.shadowAlpha})` : r === "left" ? `0 0 4px 0 rgba(0, 0, 0, ${_tooltipcssmistica.vars.shadowAlpha})` : r === "bottom" ? `-1px -1px 4px 0 rgba(0, 0, 0, ${_tooltipcssmistica.vars.shadowAlpha})` : "", jt = (_param)=>{
149
- var { children: r , extra: N , description: S , target: k , title: Y , targetLabel: L , delay: V = !0 , dataAttributes: j , targetStyle: K , unstable_offsetX: f } = _param, C = _object_without_properties(_param, [
148
+ const $t = "bottom", Bt = "top", Et = 12, m = 4 + Et, It = 500, v = 12, Mt = 500, M = ()=>{}, Nt = (r)=>r === "bottom" ? `translateY(${v}px)` : r === "top" ? `translateY(calc(-100% - ${v}px))` : r === "right" ? `translateX(${v}px) translateY(-50%)` : r === "left" ? `translateX(-${v}px) translateY(-50%)` : `translateY(-${v}px)`, kt = (r)=>r === "top" ? "translateY(-100%)" : r === "bottom" ? "translateY(0)" : "translateY(-50%)", Lt = (r)=>r === "bottom" ? "translateY(0)" : r === "top" ? "translateY(-100%)" : r === "right" || r === "left" ? "translateX(0px) translateY(-50%)" : "translateY(0px)", Vt = (r)=>r === "top" ? _tooltipcssmistica.fadeInTopKeyframes : r === "bottom" ? _tooltipcssmistica.fadeInBottomKeyframes : _tooltipcssmistica.fadeInXKeyframes, jt = (r)=>r ? "1" : "0.2", Kt = (r)=>r === "top" ? `2px 2px 4px 0 rgba(0, 0, 0, ${_tooltipcssmistica.vars.shadowAlpha})` : r === "right" ? `0 0 4px 0 rgba(0, 0, 0, ${_tooltipcssmistica.vars.shadowAlpha})` : r === "left" ? `0 0 4px 0 rgba(0, 0, 0, ${_tooltipcssmistica.vars.shadowAlpha})` : r === "bottom" ? `-1px -1px 4px 0 rgba(0, 0, 0, ${_tooltipcssmistica.vars.shadowAlpha})` : "", zt = (_param)=>{
149
+ var { children: r , extra: N , description: S , target: k , title: Y , targetLabel: L , delay: V = !0 , dataAttributes: j , targetStyle: K , unstable_offsetX: f , textCenter: z } = _param, y = _object_without_properties(_param, [
150
150
  "children",
151
151
  "extra",
152
152
  "description",
@@ -156,16 +156,17 @@ const Dt = "bottom", Wt = "top", $t = 12, m = 4 + $t, Bt = 500, v = 12, Et = 500
156
156
  "delay",
157
157
  "dataAttributes",
158
158
  "targetStyle",
159
- "unstable_offsetX"
159
+ "unstable_offsetX",
160
+ "textCenter"
160
161
  ]);
161
- const { isDarkMode: z } = (0, _hooks.useTheme)(), [a, O] = _react.useState(!1), { isTabletOrSmaller: F } = (0, _hooks.useScreenSize)(), D = (0, _hooks.useAriaId)(), h = _react.useRef(!1), c = _react.useRef(null), g = _react.useRef(null), R = _react.useRef(null), x = _react.useRef(null), t = _react.useRef({
162
+ const { isDarkMode: F } = (0, _hooks.useTheme)(), [a, C] = _react.useState(!1), { isTabletOrSmaller: H } = (0, _hooks.useScreenSize)(), D = (0, _hooks.useAriaId)(), h = _react.useRef(!1), c = _react.useRef(null), g = _react.useRef(null), O = _react.useRef(null), x = _react.useRef(null), t = _react.useRef({
162
163
  top: 0,
163
164
  right: 0,
164
165
  left: 0,
165
166
  bottom: 0,
166
167
  width: 0,
167
168
  height: 0
168
- }), [H, X] = _react.useState({}), q = (n)=>F ? n || Wt : n || Dt, [e, G] = _react.useState(void 0), i = ((n)=>{
169
+ }), [X, q] = _react.useState({}), G = (n)=>H ? n || Bt : n || $t, [e, J] = _react.useState(void 0), i = ((n)=>{
169
170
  if (!e) return n;
170
171
  const u = (d)=>{
171
172
  const p = t.current.top > e.height;
@@ -177,21 +178,21 @@ const Dt = "bottom", Wt = "top", $t = 12, m = 4 + $t, Bt = 500, v = 12, Et = 500
177
178
  left: t.current.left < e.width ? t.current.right + e.width > window.innerWidth ? t.current.top < e.height ? "bottom" : "top" : "right" : n,
178
179
  bottom: t.current.bottom + e.height > window.innerHeight ? l("top") : l(n)
179
180
  })[n];
180
- })(q(C.position)), y = (0, _environment.isClientSide)() ? window.matchMedia("(pointer: coarse)").matches : !1, W = ()=>{
181
- a && O(!1);
181
+ })(G(y.position)), R = (0, _environment.isClientSide)() ? window.matchMedia("(pointer: coarse)").matches : !1, W = ()=>{
182
+ a && C(!1);
182
183
  };
183
184
  _react.useEffect(()=>(window.addEventListener("resize", W), ()=>{
184
185
  window.removeEventListener("resize", W);
185
186
  }));
186
187
  const $ = ()=>{
187
- O(!1);
188
+ C(!1);
188
189
  }, T = ()=>{
189
- R.current && (t.current = R.current.getBoundingClientRect(), O(!a));
190
- }, J = ()=>{
190
+ O.current && (t.current = O.current.getBoundingClientRect(), C(!a));
191
+ }, Q = ()=>{
191
192
  a || T();
192
- }, Q = (n)=>{
193
- n.keyCode === _keycodes.TAB && $();
194
193
  }, U = (n)=>{
194
+ n.keyCode === _keycodes.TAB && $();
195
+ }, Z = (n)=>{
195
196
  if (!e) return {};
196
197
  const u = e.width > t.current.width && t.current.left + t.current.width / 2 < e.width / 2 + 16 ? t.current.width / 2 : "50%";
197
198
  return n === "bottom" || n === "top" ? {
@@ -221,42 +222,42 @@ const Dt = "bottom", Wt = "top", $t = 12, m = 4 + $t, Bt = 500, v = 12, Et = 500
221
222
  }, [
222
223
  f,
223
224
  e
224
- ]), b = (()=>C.width)(), Z = {
225
+ ]), b = (()=>y.width)(), _ = {
225
226
  top: _tooltipcssmistica.arrowTop,
226
227
  bottom: _tooltipcssmistica.arrowBottom,
227
228
  left: _tooltipcssmistica.arrowLeft,
228
229
  right: _tooltipcssmistica.arrowRight
229
- }, _ = i && (0, _dynamic.assignInlineVars)({
230
- [_tooltipcssmistica.vars.enterTransform]: It(i),
231
- [_tooltipcssmistica.vars.exitTransform]: Nt(i),
232
- [_tooltipcssmistica.vars.enterActiveAnimationName]: kt(i),
233
- [_tooltipcssmistica.vars.enterDoneTransform]: Mt(i),
234
- [_tooltipcssmistica.vars.shadowAlpha]: Lt(z),
235
- [_tooltipcssmistica.vars.arrowBoxShadow]: Vt(i)
230
+ }, tt = i && (0, _dynamic.assignInlineVars)({
231
+ [_tooltipcssmistica.vars.enterTransform]: Nt(i),
232
+ [_tooltipcssmistica.vars.exitTransform]: Lt(i),
233
+ [_tooltipcssmistica.vars.enterActiveAnimationName]: Vt(i),
234
+ [_tooltipcssmistica.vars.enterDoneTransform]: kt(i),
235
+ [_tooltipcssmistica.vars.shadowAlpha]: jt(F),
236
+ [_tooltipcssmistica.vars.arrowBoxShadow]: Kt(i)
236
237
  });
237
238
  return _react.useEffect(()=>{
238
- i && x.current && a && X(B(i, b || 0));
239
+ i && x.current && a && q(B(i, b || 0));
239
240
  }, [
240
241
  a,
241
242
  B,
242
243
  i,
243
244
  b
244
245
  ]), _react.useEffect(()=>{
245
- x.current && (x.current.getBoundingClientRect(), a && G(x.current.getBoundingClientRect()));
246
+ x.current && (x.current.getBoundingClientRect(), a && J(x.current.getBoundingClientRect()));
246
247
  }, [
247
248
  a
248
249
  ]), /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
249
250
  children: [
250
251
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
251
- ref: R,
252
+ ref: O,
252
253
  style: K,
253
254
  className: _tooltipcssmistica.wrapper,
254
255
  onPointerOver: ()=>{
255
256
  c.current && (clearTimeout(c.current), c.current = null), !h.current && (h.current = !0, V ? g.current = setTimeout(()=>{
256
257
  g.current = null, T();
257
- }, Et) : T());
258
+ }, Mt) : T());
258
259
  },
259
- onPointerLeave: y ? M : ()=>{
260
+ onPointerLeave: R ? M : ()=>{
260
261
  if (g.current) {
261
262
  clearTimeout(g.current), g.current = null, h.current = !1;
262
263
  return;
@@ -265,8 +266,8 @@ const Dt = "bottom", Wt = "top", $t = 12, m = 4 + $t, Bt = 500, v = 12, Et = 500
265
266
  h.current && (c.current = null, h.current = !1, T());
266
267
  }, 100);
267
268
  },
268
- onFocus: J,
269
- onKeyDown: Q,
269
+ onFocus: Q,
270
+ onKeyDown: U,
270
271
  "touch-action": "auto",
271
272
  role: "button",
272
273
  tabIndex: 0,
@@ -277,12 +278,12 @@ const Dt = "bottom", Wt = "top", $t = 12, m = 4 + $t, Bt = 500, v = 12, Et = 500
277
278
  }),
278
279
  /* @__PURE__ */ (0, _jsxruntime.jsxs)(_portal.Portal, {
279
280
  children: [
280
- a && y && /* @__PURE__ */ (0, _jsxruntime.jsx)(_overlay.default, {
281
+ a && R && /* @__PURE__ */ (0, _jsxruntime.jsx)(_overlay.default, {
281
282
  onPress: $
282
283
  }),
283
284
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_reacttransitiongroup.CSSTransition, {
284
285
  in: a,
285
- timeout: Bt,
286
+ timeout: It,
286
287
  classNames: {
287
288
  enter: _tooltipcssmistica.enter,
288
289
  enterActive: _tooltipcssmistica.enterActive,
@@ -296,22 +297,22 @@ const Dt = "bottom", Wt = "top", $t = 12, m = 4 + $t, Bt = 500, v = 12, Et = 500
296
297
  }, (0, _dom.getPrefixedDataAttributes)(j, "Tooltip")), {
297
298
  role: "tooltip",
298
299
  id: D,
299
- className: (0, _classnames.default)(_tooltipcssmistica.container, _tooltipcssmistica.textAlign),
300
+ className: (0, _classnames.default)(_tooltipcssmistica.container, _tooltipcssmistica.textAlign, z ? _tooltipcssmistica.textCenter : ""),
300
301
  style: _object_spread({
301
302
  width: b
302
- }, H, _),
303
+ }, X, tt),
303
304
  onPointerOver: ()=>{
304
305
  c.current && (clearTimeout(c.current), c.current = null);
305
306
  },
306
- onPointerLeave: y ? M : ()=>{
307
+ onPointerLeave: R ? M : ()=>{
307
308
  c.current = setTimeout(()=>{
308
309
  h.current && (c.current = null, h.current = !1, T());
309
310
  }, 100);
310
311
  },
311
312
  children: [
312
313
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
313
- style: U(i),
314
- className: (0, _classnames.default)(_tooltipcssmistica.arrowWrapper, Z[i]),
314
+ style: Z(i),
315
+ className: (0, _classnames.default)(_tooltipcssmistica.arrowWrapper, _[i]),
315
316
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
316
317
  className: _tooltipcssmistica.arrow
317
318
  })
@@ -337,4 +338,4 @@ const Dt = "bottom", Wt = "top", $t = 12, m = 4 + $t, Bt = 500, v = 12, Et = 500
337
338
  })
338
339
  ]
339
340
  });
340
- }, oe = jt;
341
+ }, ae = zt;
@@ -1 +1 @@
1
- export type Locale = 'ca-ES' | 'en-US' | 'de-DE' | 'es-AR' | 'es-CO' | 'es-EC' | 'es-ES' | 'es-MX' | 'es-PE' | 'es-UY' | 'eu-ES' | 'gl-ES' | 'pt-BR';
1
+ export type Locale = 'ca-ES' | 'en-US' | 'en-GB' | 'de-DE' | 'es-AR' | 'es-CO' | 'es-EC' | 'es-ES' | 'es-MX' | 'es-PE' | 'es-UY' | 'eu-ES' | 'gl-ES' | 'pt-BR';