@telefonica/mistica 14.21.0 → 14.22.1

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.
Files changed (163) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/card.d.ts +2 -1
  3. package/dist/card.js +74 -74
  4. package/dist/community/advanced-data-card.css-mistica.js +19 -16
  5. package/dist/community/advanced-data-card.css.d.ts +2 -1
  6. package/dist/community/advanced-data-card.js +106 -102
  7. package/dist/community/blocks.js +14 -14
  8. package/dist/date-time-field.js +13 -9
  9. package/dist/form.js +15 -15
  10. package/dist/generated/mistica-icons/icon-add-more-location-filled.js +1 -1
  11. package/dist/generated/mistica-icons/icon-add-more-location-regular.js +1 -1
  12. package/dist/generated/mistica-icons/icon-add-more-query-light.js +1 -1
  13. package/dist/generated/mistica-icons/icon-adn-filled.js +1 -1
  14. package/dist/generated/mistica-icons/icon-adn-regular.js +1 -1
  15. package/dist/generated/mistica-icons/icon-alarm-light-cross-filled.js +1 -1
  16. package/dist/generated/mistica-icons/icon-alarm-light-cross-light.js +1 -1
  17. package/dist/generated/mistica-icons/icon-ambulance-filled.js +1 -1
  18. package/dist/generated/mistica-icons/icon-ambulance-light.js +1 -1
  19. package/dist/generated/mistica-icons/icon-ambulance-regular.js +5 -5
  20. package/dist/generated/mistica-icons/icon-api-filled.js +1 -1
  21. package/dist/generated/mistica-icons/icon-api-light.js +1 -1
  22. package/dist/generated/mistica-icons/icon-arrow-down-left-regular.js +1 -1
  23. package/dist/generated/mistica-icons/icon-arrow-down-light.js +1 -1
  24. package/dist/generated/mistica-icons/icon-arrow-down-right-light.js +1 -1
  25. package/dist/generated/mistica-icons/icon-bell-regular.js +1 -1
  26. package/dist/generated/mistica-icons/icon-bicycle-bike-filled.js +1 -1
  27. package/dist/generated/mistica-icons/icon-blog-regular.js +1 -1
  28. package/dist/generated/mistica-icons/icon-boat-light.js +1 -1
  29. package/dist/generated/mistica-icons/icon-book-filled.js +1 -1
  30. package/dist/generated/mistica-icons/icon-book-light.js +3 -3
  31. package/dist/generated/mistica-icons/icon-bug-filled.js +1 -1
  32. package/dist/generated/mistica-icons/icon-calendar-filled.js +1 -1
  33. package/dist/generated/mistica-icons/icon-data-shield-regular.js +15 -15
  34. package/dist/generated/mistica-icons/icon-database-regular.js +1 -1
  35. package/dist/generated/mistica-icons/icon-delivery-van-moving-regular.js +1 -1
  36. package/dist/generated/mistica-icons/icon-diamond-regular.js +1 -1
  37. package/dist/generated/mistica-icons/icon-disconnect-regular.js +1 -1
  38. package/dist/generated/mistica-icons/icon-dollar-symbol-circle-filled.js +1 -1
  39. package/dist/generated/mistica-icons/icon-dollar-symbol-circle-regular.js +1 -1
  40. package/dist/generated/mistica-icons/icon-dollar-symbol-filled.js +1 -1
  41. package/dist/generated/mistica-icons/icon-dollar-symbol-regular.js +1 -1
  42. package/dist/generated/mistica-icons/icon-download-app-filled.js +1 -1
  43. package/dist/generated/mistica-icons/icon-download-app-regular.js +1 -1
  44. package/dist/generated/mistica-icons/icon-drink-filled.js +1 -1
  45. package/dist/generated/mistica-icons/icon-drink-regular.js +1 -1
  46. package/dist/generated/mistica-icons/icon-dumbbell-filled.js +1 -1
  47. package/dist/generated/mistica-icons/icon-dumbbell-regular.js +1 -1
  48. package/dist/generated/mistica-icons/icon-eco-filled.js +1 -1
  49. package/dist/generated/mistica-icons/icon-eco-regular.js +1 -1
  50. package/dist/generated/mistica-icons/icon-edit-filled.js +1 -1
  51. package/dist/generated/mistica-icons/icon-email-filled.js +1 -1
  52. package/dist/generated/mistica-icons/icon-emergency-cross-with-circle-filled.js +1 -1
  53. package/dist/generated/mistica-icons/icon-error-filled.js +1 -1
  54. package/dist/generated/mistica-icons/icon-esim-filled.js +32 -11
  55. package/dist/generated/mistica-icons/icon-esim-light.js +31 -10
  56. package/dist/generated/mistica-icons/icon-esim-regular.js +31 -10
  57. package/dist/generated/mistica-icons/icon-euro-symbol-circle-filled.js +3 -3
  58. package/dist/generated/mistica-icons/icon-euro-symbol-filled.js +1 -1
  59. package/dist/generated/mistica-icons/icon-funnel-filled.js +21 -10
  60. package/dist/generated/mistica-icons/icon-funnel-light.js +19 -8
  61. package/dist/generated/mistica-icons/icon-funnel-regular.js +21 -10
  62. package/dist/generated/mistica-icons/icon-poison-regular.js +3 -3
  63. package/dist/generated/mistica-icons/icon-price-drop-light.js +4 -4
  64. package/dist/generated/mistica-icons/icon-search-file-filled.js +1 -1
  65. package/dist/index.d.ts +1 -0
  66. package/dist/index.js +4 -0
  67. package/dist/logo.css-mistica.js +12 -0
  68. package/dist/logo.css.d.ts +1 -0
  69. package/dist/logo.css.ts.vanilla.css-mistica.js +11 -0
  70. package/dist/logo.d.ts +3 -1
  71. package/dist/logo.js +94 -84
  72. package/dist/navigation-bar.css-mistica.js +46 -31
  73. package/dist/navigation-bar.css.d.ts +8 -5
  74. package/dist/navigation-bar.d.ts +4 -0
  75. package/dist/navigation-bar.js +204 -187
  76. package/dist/overscroll-color-context.js +1 -1
  77. package/dist/package-version.js +1 -1
  78. package/dist/sheet-root.js +118 -107
  79. package/dist/text.d.ts +1 -1
  80. package/dist/text.js +23 -23
  81. package/dist/theme.d.ts +1 -0
  82. package/dist/tooltip.css-mistica.js +10 -7
  83. package/dist/tooltip.css.d.ts +2 -0
  84. package/dist/tooltip.d.ts +2 -0
  85. package/dist/tooltip.js +113 -77
  86. package/dist/utils/dom.d.ts +1 -0
  87. package/dist/utils/dom.js +56 -40
  88. package/dist-es/card.js +74 -74
  89. package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
  90. package/dist-es/community/advanced-data-card.js +130 -126
  91. package/dist-es/community/blocks.js +25 -25
  92. package/dist-es/date-time-field.js +18 -14
  93. package/dist-es/form.js +15 -15
  94. package/dist-es/generated/mistica-icons/icon-add-more-location-filled.js +1 -1
  95. package/dist-es/generated/mistica-icons/icon-add-more-location-regular.js +1 -1
  96. package/dist-es/generated/mistica-icons/icon-add-more-query-light.js +1 -1
  97. package/dist-es/generated/mistica-icons/icon-adn-filled.js +1 -1
  98. package/dist-es/generated/mistica-icons/icon-adn-regular.js +1 -1
  99. package/dist-es/generated/mistica-icons/icon-alarm-light-cross-filled.js +1 -1
  100. package/dist-es/generated/mistica-icons/icon-alarm-light-cross-light.js +1 -1
  101. package/dist-es/generated/mistica-icons/icon-ambulance-filled.js +1 -1
  102. package/dist-es/generated/mistica-icons/icon-ambulance-light.js +1 -1
  103. package/dist-es/generated/mistica-icons/icon-ambulance-regular.js +6 -6
  104. package/dist-es/generated/mistica-icons/icon-api-filled.js +1 -1
  105. package/dist-es/generated/mistica-icons/icon-api-light.js +1 -1
  106. package/dist-es/generated/mistica-icons/icon-arrow-down-left-regular.js +1 -1
  107. package/dist-es/generated/mistica-icons/icon-arrow-down-light.js +1 -1
  108. package/dist-es/generated/mistica-icons/icon-arrow-down-right-light.js +1 -1
  109. package/dist-es/generated/mistica-icons/icon-bell-regular.js +1 -1
  110. package/dist-es/generated/mistica-icons/icon-bicycle-bike-filled.js +1 -1
  111. package/dist-es/generated/mistica-icons/icon-blog-regular.js +1 -1
  112. package/dist-es/generated/mistica-icons/icon-boat-light.js +1 -1
  113. package/dist-es/generated/mistica-icons/icon-book-filled.js +1 -1
  114. package/dist-es/generated/mistica-icons/icon-book-light.js +3 -3
  115. package/dist-es/generated/mistica-icons/icon-bug-filled.js +1 -1
  116. package/dist-es/generated/mistica-icons/icon-calendar-filled.js +1 -1
  117. package/dist-es/generated/mistica-icons/icon-data-shield-regular.js +15 -15
  118. package/dist-es/generated/mistica-icons/icon-database-regular.js +1 -1
  119. package/dist-es/generated/mistica-icons/icon-delivery-van-moving-regular.js +1 -1
  120. package/dist-es/generated/mistica-icons/icon-diamond-regular.js +1 -1
  121. package/dist-es/generated/mistica-icons/icon-disconnect-regular.js +1 -1
  122. package/dist-es/generated/mistica-icons/icon-dollar-symbol-circle-filled.js +1 -1
  123. package/dist-es/generated/mistica-icons/icon-dollar-symbol-circle-regular.js +1 -1
  124. package/dist-es/generated/mistica-icons/icon-dollar-symbol-filled.js +1 -1
  125. package/dist-es/generated/mistica-icons/icon-dollar-symbol-regular.js +1 -1
  126. package/dist-es/generated/mistica-icons/icon-download-app-filled.js +1 -1
  127. package/dist-es/generated/mistica-icons/icon-download-app-regular.js +1 -1
  128. package/dist-es/generated/mistica-icons/icon-drink-filled.js +1 -1
  129. package/dist-es/generated/mistica-icons/icon-drink-regular.js +1 -1
  130. package/dist-es/generated/mistica-icons/icon-dumbbell-filled.js +1 -1
  131. package/dist-es/generated/mistica-icons/icon-dumbbell-regular.js +6 -6
  132. package/dist-es/generated/mistica-icons/icon-eco-filled.js +1 -1
  133. package/dist-es/generated/mistica-icons/icon-eco-regular.js +1 -1
  134. package/dist-es/generated/mistica-icons/icon-edit-filled.js +1 -1
  135. package/dist-es/generated/mistica-icons/icon-email-filled.js +1 -1
  136. package/dist-es/generated/mistica-icons/icon-emergency-cross-with-circle-filled.js +1 -1
  137. package/dist-es/generated/mistica-icons/icon-error-filled.js +1 -1
  138. package/dist-es/generated/mistica-icons/icon-esim-filled.js +38 -17
  139. package/dist-es/generated/mistica-icons/icon-esim-light.js +38 -17
  140. package/dist-es/generated/mistica-icons/icon-esim-regular.js +37 -16
  141. package/dist-es/generated/mistica-icons/icon-euro-symbol-circle-filled.js +3 -3
  142. package/dist-es/generated/mistica-icons/icon-euro-symbol-filled.js +1 -1
  143. package/dist-es/generated/mistica-icons/icon-funnel-filled.js +25 -14
  144. package/dist-es/generated/mistica-icons/icon-funnel-light.js +23 -12
  145. package/dist-es/generated/mistica-icons/icon-funnel-regular.js +23 -12
  146. package/dist-es/generated/mistica-icons/icon-poison-regular.js +3 -3
  147. package/dist-es/generated/mistica-icons/icon-price-drop-light.js +4 -4
  148. package/dist-es/generated/mistica-icons/icon-search-file-filled.js +1 -1
  149. package/dist-es/index.js +1677 -1676
  150. package/dist-es/logo.css-mistica.js +3 -0
  151. package/dist-es/logo.css.ts.vanilla.css-mistica.js +2 -0
  152. package/dist-es/logo.js +94 -84
  153. package/dist-es/navigation-bar.css-mistica.js +21 -15
  154. package/dist-es/navigation-bar.js +251 -234
  155. package/dist-es/overscroll-color-context.js +1 -1
  156. package/dist-es/package-version.js +1 -1
  157. package/dist-es/sheet-root.js +121 -110
  158. package/dist-es/style.css +1 -1
  159. package/dist-es/text.js +21 -21
  160. package/dist-es/tooltip.css-mistica.js +3 -3
  161. package/dist-es/tooltip.js +143 -107
  162. package/dist-es/utils/dom.js +46 -33
  163. package/package.json +1 -1
@@ -10,7 +10,7 @@ function _export(target, all) {
10
10
  }
11
11
  _export(exports, {
12
12
  SheetRoot: function() {
13
- return k;
13
+ return C;
14
14
  },
15
15
  default: function() {
16
16
  return B;
@@ -149,41 +149,41 @@ function _object_spread_props(target, source) {
149
149
  }
150
150
  return target;
151
151
  }
152
- let d = null, e = null, u = null;
152
+ let p = null, n = null, l = null;
153
153
  const m = (param)=>{
154
- let { title: o , subtitle: c , description: t , selectedId: r , items: n } = param;
155
- return u({
156
- title: o,
154
+ let { title: s , subtitle: c , description: e , selectedId: o , items: t } = param;
155
+ return l({
156
+ title: s,
157
157
  subtitle: c,
158
- description: t,
158
+ description: e,
159
159
  content: [
160
160
  {
161
161
  type: "LIST",
162
162
  id: "list-0",
163
163
  listType: "SINGLE_SELECTION",
164
164
  autoSubmit: !0,
165
- selectedIds: typeof r == "string" ? [
166
- r
165
+ selectedIds: typeof o == "string" ? [
166
+ o
167
167
  ] : [],
168
- items: n
168
+ items: t
169
169
  }
170
170
  ]
171
171
  }).then((param)=>{
172
- let { action: s , result: a } = param;
173
- return s === "SUBMIT" ? {
174
- action: s,
175
- selectedId: a[0].selectedIds[0]
172
+ let { action: r , result: i } = param;
173
+ return r === "SUBMIT" ? {
174
+ action: r,
175
+ selectedId: i[0].selectedIds[0]
176
176
  } : {
177
- action: s,
177
+ action: r,
178
178
  selectedId: null
179
179
  };
180
180
  });
181
181
  }, L = (param)=>{
182
- let { title: o , subtitle: c , description: t , items: r } = param;
183
- return u({
184
- title: o,
182
+ let { title: s , subtitle: c , description: e , items: o } = param;
183
+ return l({
184
+ title: s,
185
185
  subtitle: c,
186
- description: t,
186
+ description: e,
187
187
  content: [
188
188
  {
189
189
  type: "LIST",
@@ -191,26 +191,26 @@ const m = (param)=>{
191
191
  listType: "ACTIONS",
192
192
  autoSubmit: !0,
193
193
  selectedIds: [],
194
- items: r
194
+ items: o
195
195
  }
196
196
  ]
197
197
  }).then((param)=>{
198
- let { action: n , result: s } = param;
199
- return n === "SUBMIT" ? {
200
- action: n,
201
- selectedId: s[0].selectedIds[0]
198
+ let { action: t , result: r } = param;
199
+ return t === "SUBMIT" ? {
200
+ action: t,
201
+ selectedId: r[0].selectedIds[0]
202
202
  } : {
203
- action: n,
203
+ action: t,
204
204
  selectedId: null
205
205
  };
206
206
  });
207
- }, C = function() {
207
+ }, k = function() {
208
208
  var _ref = _async_to_generator(function*(param) {
209
- let { title: o , subtitle: c , description: t , items: r } = param;
210
- yield u({
211
- title: o,
209
+ let { title: s , subtitle: c , description: e , items: o } = param;
210
+ yield l({
211
+ title: s,
212
212
  subtitle: c,
213
- description: t,
213
+ description: e,
214
214
  content: [
215
215
  {
216
216
  type: "LIST",
@@ -218,37 +218,37 @@ const m = (param)=>{
218
218
  listType: "INFORMATIVE",
219
219
  autoSubmit: !1,
220
220
  selectedIds: [],
221
- items: r
221
+ items: o
222
222
  }
223
223
  ]
224
224
  });
225
225
  });
226
- return function C(_) {
226
+ return function k(_) {
227
227
  return _ref.apply(this, arguments);
228
228
  };
229
- }(), M = function() {
229
+ }(), b = function() {
230
230
  var _ref = _async_to_generator(function*(param) {
231
- let { title: o , subtitle: c , description: t , button: r , secondaryButton: n , link: s } = param;
232
- return u({
233
- title: o,
231
+ let { title: s , subtitle: c , description: e , button: o , secondaryButton: t , link: r } = param;
232
+ return l({
233
+ title: s,
234
234
  subtitle: c,
235
- description: t,
235
+ description: e,
236
236
  content: [
237
237
  {
238
238
  type: "BOTTOM_ACTIONS",
239
239
  id: "bottom-actions-0",
240
- button: r,
241
- secondaryButton: n,
242
- link: s
240
+ button: o,
241
+ secondaryButton: t,
242
+ link: r
243
243
  }
244
244
  ]
245
245
  }).then((param)=>{
246
- let { action: a , result: i } = param;
247
- if (a === "SUBMIT") {
248
- const p = i.find((param)=>{
246
+ let { action: i , result: a } = param;
247
+ if (i === "SUBMIT") {
248
+ const d = a.find((param)=>{
249
249
  let { id: T } = param;
250
250
  return T === "bottom-actions-0";
251
- }), I = p == null ? void 0 : p.selectedIds[0];
251
+ }), I = d == null ? void 0 : d.selectedIds[0];
252
252
  if (I === "PRIMARY" || I === "SECONDARY" || I === "LINK") return {
253
253
  action: I
254
254
  };
@@ -258,113 +258,124 @@ const m = (param)=>{
258
258
  };
259
259
  });
260
260
  });
261
- return function M(_) {
261
+ return function b(_) {
262
262
  return _ref.apply(this, arguments);
263
263
  };
264
264
  }();
265
265
  let f = !1;
266
- const _ = (o)=>{
267
- if (u) {
268
- const { type: t , props: r } = o;
269
- switch(t){
266
+ const _ = (s)=>{
267
+ const c = ()=>{
268
+ if (!p) return Promise.reject(new Error("Tried to show a Sheet but the SheetRoot component was not mounted"));
269
+ if (f) return Promise.reject(new Error("Tried to show a Sheet but there is already one open"));
270
+ f = !0, p(s);
271
+ const e = new Promise((o)=>{
272
+ n = o;
273
+ });
274
+ return e.finally(()=>{
275
+ f = !1;
276
+ }), e;
277
+ };
278
+ if (l) {
279
+ let e;
280
+ const { type: o , props: t } = s;
281
+ switch(o){
270
282
  case "INFO":
271
- return C(r);
283
+ e = k(t);
284
+ break;
272
285
  case "ACTIONS_LIST":
273
- return L(r);
286
+ e = L(t);
287
+ break;
274
288
  case "RADIO_LIST":
275
- return m(r);
289
+ e = m(t);
290
+ break;
276
291
  case "ACTIONS":
277
- return M(r);
292
+ e = b(t);
293
+ break;
278
294
  default:
279
- const n = t;
280
- throw new Error(`Unknown sheet type: ${n}`);
295
+ const r = o;
296
+ throw new Error(`Unknown sheet type: ${r}`);
281
297
  }
282
- }
283
- if (!d) return Promise.reject(new Error("Tried to show a Sheet but the SheetRoot component was not mounted"));
284
- if (f) return Promise.reject(new Error("Tried to show a Sheet but there is already one open"));
285
- f = !0, d(o);
286
- const c = new Promise((t)=>{
287
- e = t;
288
- });
289
- return c.then(()=>{
290
- f = !1;
291
- }), c;
292
- }, k = (o)=>{
293
- const { isDarkMode: c } = (0, _hooks.useTheme)(), [t, r] = _react.useState(null), n = _react.useRef(null);
298
+ return e.catch((r)=>{
299
+ if (r.code === "400") return c();
300
+ throw r;
301
+ });
302
+ } else return c();
303
+ }, C = (s)=>{
304
+ const { isDarkMode: c } = (0, _hooks.useTheme)(), [e, o] = _react.useState(null), t = _react.useRef(null);
294
305
  if (_react.useEffect(()=>{
295
- if (o.nativeImplementation) return u = o.nativeImplementation, ()=>{
296
- u = null;
306
+ if (s.nativeImplementation) return l = s.nativeImplementation, ()=>{
307
+ l = null;
297
308
  };
298
309
  }, [
299
- o.nativeImplementation
300
- ]), _react.useEffect(()=>(d = (i)=>{
301
- n.current = null, r(i);
310
+ s.nativeImplementation
311
+ ]), _react.useEffect(()=>(p = (a)=>{
312
+ t.current = null, o(a);
302
313
  }, ()=>{
303
- d = null;
304
- }), []), !t || o.nativeImplementation) return null;
305
- const s = ()=>{
306
- switch(r(null), t.type){
314
+ p = null;
315
+ }), []), !e) return null;
316
+ const r = ()=>{
317
+ switch(o(null), e.type){
307
318
  case "INFO":
308
- e == null || e(void 0);
319
+ n == null || n(void 0);
309
320
  break;
310
321
  case "ACTIONS_LIST":
311
- n.current ? e == null || e({
322
+ t.current ? n == null || n({
312
323
  action: "SUBMIT",
313
- selectedId: n.current
314
- }) : e == null || e({
324
+ selectedId: t.current
325
+ }) : n == null || n({
315
326
  action: "DISMISS"
316
327
  });
317
328
  break;
318
329
  case "RADIO_LIST":
319
- n.current ? e == null || e({
330
+ t.current ? n == null || n({
320
331
  action: "SUBMIT",
321
- selectedId: n.current
322
- }) : e == null || e({
332
+ selectedId: t.current
333
+ }) : n == null || n({
323
334
  action: "DISMISS"
324
335
  });
325
336
  break;
326
337
  case "ACTIONS":
327
- n.current === "PRIMARY" || n.current === "SECONDARY" || n.current === "LINK" ? e == null || e({
328
- action: n.current
329
- }) : e == null || e({
338
+ t.current === "PRIMARY" || t.current === "SECONDARY" || t.current === "LINK" ? n == null || n({
339
+ action: t.current
340
+ }) : n == null || n({
330
341
  action: "DISMISS"
331
342
  });
332
343
  break;
333
344
  default:
334
- throw new Error(`Unknown sheet type: ${t.type}`);
345
+ throw new Error(`Unknown sheet type: ${e.type}`);
335
346
  }
336
- }, a = (i)=>{
337
- n.current = i;
347
+ }, i = (a)=>{
348
+ t.current = a;
338
349
  };
339
- switch(t.type){
350
+ switch(e.type){
340
351
  case "INFO":
341
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(_sheet.InfoSheet, _object_spread_props(_object_spread({}, t.props), {
342
- onClose: s
352
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(_sheet.InfoSheet, _object_spread_props(_object_spread({}, e.props), {
353
+ onClose: r
343
354
  }));
344
355
  case "ACTIONS_LIST":
345
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(_sheet.ActionsListSheet, _object_spread_props(_object_spread({}, t.props), {
346
- onClose: s,
347
- onSelect: a
356
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(_sheet.ActionsListSheet, _object_spread_props(_object_spread({}, e.props), {
357
+ onClose: r,
358
+ onSelect: i
348
359
  }));
349
360
  case "RADIO_LIST":
350
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(_sheet.RadioListSheet, _object_spread_props(_object_spread({}, t.props), {
351
- items: t.props.items.map((i)=>_object_spread_props(_object_spread({}, i), {
352
- asset: i.icon && /* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, {
361
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(_sheet.RadioListSheet, _object_spread_props(_object_spread({}, e.props), {
362
+ items: e.props.items.map((a)=>_object_spread_props(_object_spread({}, a), {
363
+ asset: a.icon && /* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, {
353
364
  circular: !0,
354
- src: c && i.icon.urlDark ? i.icon.urlDark : i.icon.url,
355
- width: i.icon.size === "small" ? 24 : 40
365
+ src: c && a.icon.urlDark ? a.icon.urlDark : a.icon.url,
366
+ width: a.icon.size === "small" ? 24 : 40
356
367
  })
357
368
  })),
358
- onClose: s,
359
- onSelect: a
369
+ onClose: r,
370
+ onSelect: i
360
371
  }));
361
372
  case "ACTIONS":
362
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(_sheet.ActionsSheet, _object_spread_props(_object_spread({}, t.props), {
363
- buttonLink: t.props.link,
364
- onClose: s,
365
- onPressButton: a
373
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(_sheet.ActionsSheet, _object_spread_props(_object_spread({}, e.props), {
374
+ buttonLink: e.props.link,
375
+ onClose: r,
376
+ onPressButton: i
366
377
  }));
367
378
  default:
368
- throw new Error(`Unknown sheet type: ${t.type}`);
379
+ throw new Error(`Unknown sheet type: ${e.type}`);
369
380
  }
370
- }, B = k;
381
+ }, B = C;
package/dist/text.d.ts CHANGED
@@ -10,7 +10,7 @@ export interface TextPresetProps {
10
10
  truncate?: boolean | number;
11
11
  wordBreak?: boolean;
12
12
  hyphens?: 'auto' | 'manual' | 'none';
13
- textAlign?: 'center';
13
+ textAlign?: 'center' | 'right';
14
14
  id?: string;
15
15
  as?: React.ComponentType<any> | string;
16
16
  role?: string;
package/dist/text.js CHANGED
@@ -13,16 +13,16 @@ _export(exports, {
13
13
  return n;
14
14
  },
15
15
  Text1: function() {
16
- return ge;
16
+ return le;
17
17
  },
18
18
  Text10: function() {
19
19
  return oe;
20
20
  },
21
21
  Text2: function() {
22
- return le;
22
+ return pe;
23
23
  },
24
24
  Text3: function() {
25
- return pe;
25
+ return he;
26
26
  },
27
27
  Text4: function() {
28
28
  return xe;
@@ -43,7 +43,7 @@ _export(exports, {
43
43
  return ne;
44
44
  },
45
45
  default: function() {
46
- return he;
46
+ return ge;
47
47
  }
48
48
  });
49
49
  const _jsxruntime = require("react/jsx-runtime");
@@ -185,21 +185,21 @@ const J = {
185
185
  medium: 500,
186
186
  bold: 700
187
187
  }, K = (e)=>e === !0 ? 1 : e || "initial", n = (param)=>{
188
- let { weight: e , color: i = _skincontractcssmistica.vars.colors.textPrimary , decoration: t , truncate: o , transform: g , wordBreak: c = !0 , hyphens: S , as: z = "span" , children: h , size: u , mobileSize: d = u , desktopSize: b = u , lineHeight: T , mobileLineHeight: f = T , desktopLineHeight: k = T , letterSpacing: w , textAlign: H , textShadow: v , id: A , role: P , "aria-level": y , dataAttributes: I } = param;
188
+ let { weight: e , color: i = _skincontractcssmistica.vars.colors.textPrimary , decoration: t , truncate: o , transform: l , wordBreak: c = !0 , hyphens: S , as: z = "span" , children: g , size: u , mobileSize: d = u , desktopSize: b = u , lineHeight: T , mobileLineHeight: f = T , desktopLineHeight: k = T , letterSpacing: w , textAlign: H , textShadow: v , id: A , role: P , "aria-level": y , dataAttributes: I } = param;
189
189
  const W = (0, _themevariantcontext.useIsInverseVariant)(), V = K(o), C = {
190
190
  [_skincontractcssmistica.vars.colors.textPrimary]: _skincontractcssmistica.vars.colors.textPrimaryInverse,
191
191
  [_skincontractcssmistica.vars.colors.textSecondary]: _skincontractcssmistica.vars.colors.textSecondaryInverse,
192
192
  [_skincontractcssmistica.vars.colors.textLink]: _skincontractcssmistica.vars.colors.textLinkInverse
193
193
  };
194
- if (!h && h !== 0) return null;
194
+ if (!g && g !== 0) return null;
195
195
  const D = (0, _classnames.default)(_textcssmistica.text, c ? _textcssmistica.withWordBreak : _textcssmistica.withoutWordBreak, {
196
196
  [_textcssmistica.truncateToOneLine]: o === 1 || o === !0,
197
197
  [_textcssmistica.truncateToMoreThanOneLine]: o && o > 1
198
198
  }), M = (0, _dynamic.assignInlineVars)({
199
- [_textcssmistica.vars.mobileSize]: d ? (0, _css.pxToRem)(d) : "",
200
- [_textcssmistica.vars.mobileLineHeight]: f ? (0, _css.pxToRem)(f) : "",
201
- [_textcssmistica.vars.desktopSize]: b ? (0, _css.pxToRem)(b) : "",
202
- [_textcssmistica.vars.desktopLineHeight]: k ? (0, _css.pxToRem)(k) : ""
199
+ [_textcssmistica.vars.mobileSize]: d ? (0, _css.pxToRem)(d) : "inherit",
200
+ [_textcssmistica.vars.mobileLineHeight]: f ? (0, _css.pxToRem)(f) : "inherit",
201
+ [_textcssmistica.vars.desktopSize]: b ? (0, _css.pxToRem)(b) : "inherit",
202
+ [_textcssmistica.vars.desktopLineHeight]: k ? (0, _css.pxToRem)(k) : "inherit"
203
203
  }), O = o ? (0, _dynamic.assignInlineVars)({
204
204
  [_textcssmistica.vars.lineClamp]: String(V)
205
205
  }) : {};
@@ -214,21 +214,21 @@ const J = {
214
214
  hyphens: S,
215
215
  letterSpacing: w,
216
216
  fontWeight: e ? J[e] : "inherit",
217
- textTransform: g || "inherit",
217
+ textTransform: l || "inherit",
218
218
  textDecoration: t !== null && t !== void 0 ? t : "inherit",
219
219
  overflowWrap: c ? "anywhere" : "inherit",
220
220
  color: W ? (_C_i = C[i]) !== null && _C_i !== void 0 ? _C_i : i : i,
221
221
  textAlign: H,
222
222
  textShadow: v
223
223
  })
224
- }), h);
225
- }, l = (e)=>{
224
+ }), g);
225
+ }, p = (e)=>{
226
226
  if (e.light) return "light";
227
227
  if (e.regular) return "regular";
228
228
  if (e.medium) return "medium";
229
229
  if (e.weight) return e.weight;
230
230
  }, s = (param)=>{
231
- let { forceMobileSizes: e , mobileSize: i , mobileLineHeight: t , desktopSize: o , desktopLineHeight: g } = param;
231
+ let { forceMobileSizes: e , mobileSize: i , mobileLineHeight: t , desktopSize: o , desktopLineHeight: l } = param;
232
232
  return e ? {
233
233
  size: i,
234
234
  lineHeight: t
@@ -236,7 +236,7 @@ const J = {
236
236
  mobileSize: i,
237
237
  mobileLineHeight: t,
238
238
  desktopSize: o,
239
- desktopLineHeight: g
239
+ desktopLineHeight: l
240
240
  };
241
241
  }, oe = (_param)=>{
242
242
  var { dataAttributes: e , forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
@@ -358,12 +358,12 @@ const J = {
358
358
  desktopSize: 20,
359
359
  desktopLineHeight: "28px"
360
360
  })), {
361
- weight: l(t),
361
+ weight: p(t),
362
362
  dataAttributes: _object_spread({
363
363
  "component-name": "Text4"
364
364
  }, e)
365
365
  }), t));
366
- }, pe = (_param)=>/* @__PURE__ */ {
366
+ }, he = (_param)=>/* @__PURE__ */ {
367
367
  var { dataAttributes: e , forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
368
368
  "dataAttributes",
369
369
  "forceMobileSizes"
@@ -375,12 +375,12 @@ const J = {
375
375
  desktopSize: 18,
376
376
  desktopLineHeight: "24px"
377
377
  })), {
378
- weight: l(t),
378
+ weight: p(t),
379
379
  dataAttributes: _object_spread({
380
380
  "component-name": "Text3"
381
381
  }, e)
382
382
  }), t));
383
- }, le = (_param)=>/* @__PURE__ */ {
383
+ }, pe = (_param)=>/* @__PURE__ */ {
384
384
  var { dataAttributes: e , forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
385
385
  "dataAttributes",
386
386
  "forceMobileSizes"
@@ -392,12 +392,12 @@ const J = {
392
392
  desktopSize: 16,
393
393
  desktopLineHeight: "24px"
394
394
  })), {
395
- weight: l(t),
395
+ weight: p(t),
396
396
  dataAttributes: _object_spread({
397
397
  "component-name": "Text2"
398
398
  }, e)
399
399
  }), t));
400
- }, ge = (_param)=>/* @__PURE__ */ {
400
+ }, le = (_param)=>/* @__PURE__ */ {
401
401
  var { dataAttributes: e , forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
402
402
  "dataAttributes",
403
403
  "forceMobileSizes"
@@ -409,9 +409,9 @@ const J = {
409
409
  desktopSize: 14,
410
410
  desktopLineHeight: "20px"
411
411
  })), {
412
- weight: l(t),
412
+ weight: p(t),
413
413
  dataAttributes: _object_spread({
414
414
  "component-name": "Text1"
415
415
  }, e)
416
416
  }), t));
417
- }, he = n;
417
+ }, ge = n;
package/dist/theme.d.ts CHANGED
@@ -42,6 +42,7 @@ declare const TEXTS_ES: {
42
42
  export declare const getTexts: (locale: Locale) => typeof TEXTS_ES;
43
43
  export declare const NAVBAR_HEIGHT_MOBILE = 56;
44
44
  export declare const NAVBAR_HEIGHT_DESKTOP = 80;
45
+ export declare const NAVBAR_HEIGHT_DESKTOP_LARGE: number;
45
46
  export declare const dimensions: {
46
47
  headerMobileHeight: number;
47
48
  headerDesktopHeight: number;
@@ -37,13 +37,13 @@ _export(exports, {
37
37
  return o;
38
38
  },
39
39
  enterDone: function() {
40
- return y;
40
+ return x;
41
41
  },
42
42
  exit: function() {
43
- return h;
43
+ return y;
44
44
  },
45
45
  exitActive: function() {
46
- return x;
46
+ return h;
47
47
  },
48
48
  fadeInBottomKeyframes: function() {
49
49
  return m;
@@ -54,20 +54,23 @@ _export(exports, {
54
54
  fadeInXKeyframes: function() {
55
55
  return d;
56
56
  },
57
- vars: function() {
57
+ textAlign: function() {
58
58
  return w;
59
59
  },
60
- wrapper: function() {
60
+ vars: function() {
61
61
  return c;
62
+ },
63
+ wrapper: function() {
64
+ return s;
62
65
  }
63
66
  });
64
67
  require("./sprinkles.css.ts.vanilla.css-mistica.js");
65
68
  require("./tooltip.css.ts.vanilla.css-mistica.js");
66
- var v = "_1xhatbpb _1y2v1nfb0 _1y2v1nfeb _1y2v1nfby _1y2v1nfce _1y2v1nfdp _1y2v1nf31 _1y2v1nfdm", t = "_1xhatbpe", _ = "_1xhatbpf", e = "_1xhatbpd", n = "_1xhatbpc", f = "_1y2v1nfb0 _1y2v1nfc1 _1y2v1nfce _1y2v1nfe5 _1y2v1nf2", p = "_1xhatbpj _1y2v1nf68 _1y2v1nf7h _1y2v1nf8q _1y2v1nf9z _1y2v1nfb0 _1y2v1nfev _1y2v1nfbt _1y2v1nfdy _1y2v1nfdm", b = "_1xhatbpk", o = "_1xhatbpl", y = "_1xhatbpm", h = "_1xhatbpn", x = "_1xhatbpo", m = "_1xhatbp6", i = "_1xhatbp7", d = "_1xhatbp8", w = {
69
+ var v = "_1xhatbpb _1y2v1nfb0 _1y2v1nfeb _1y2v1nfby _1y2v1nfce _1y2v1nfdp _1y2v1nf31 _1y2v1nfdm", t = "_1xhatbpe", _ = "_1xhatbpf", e = "_1xhatbpd", n = "_1xhatbpc", f = "_1y2v1nfb0 _1y2v1nfc1 _1y2v1nfce _1y2v1nfe5 _1y2v1nf2", p = "_1xhatbpj _1y2v1nf68 _1y2v1nf7h _1y2v1nf8q _1y2v1nf9z _1y2v1nfb0 _1y2v1nfev _1y2v1nfbt _1y2v1nfdy _1y2v1nfdm", b = "_1xhatbpl", o = "_1xhatbpm", x = "_1xhatbpn", y = "_1xhatbpo", h = "_1xhatbpp", m = "_1xhatbp6", i = "_1xhatbp7", d = "_1xhatbp8", w = "_1xhatbpk", c = {
67
70
  shadowAlpha: "var(--_1xhatbp0)",
68
71
  enterTransform: "var(--_1xhatbp1)",
69
72
  enterDoneTransform: "var(--_1xhatbp2)",
70
73
  exitTransform: "var(--_1xhatbp3)",
71
74
  enterActiveAnimationName: "var(--_1xhatbp4)",
72
75
  arrowBoxShadow: "var(--_1xhatbp5)"
73
- }, c = "_1y2v1nfb9";
76
+ }, s = "_1y2v1nfb9";
@@ -17,7 +17,9 @@ export declare const arrowBottom: string;
17
17
  export declare const arrowLeft: string;
18
18
  export declare const arrowWrapper: string;
19
19
  export declare const wrapper: string;
20
+ export declare const tooltipMinWidth = 40;
20
21
  export declare const container: string;
22
+ export declare const textAlign: string;
21
23
  export declare const enter: string;
22
24
  export declare const enterActive: string;
23
25
  export declare const enterDone: string;
package/dist/tooltip.d.ts CHANGED
@@ -12,6 +12,8 @@ type Props = {
12
12
  targetLabel: string;
13
13
  delay?: boolean;
14
14
  dataAttributes?: DataAttributes;
15
+ targetStyle?: React.CSSProperties;
16
+ unstable_offsetX?: number;
15
17
  };
16
18
  declare const Tooltip: React.FC<Props>;
17
19
  export default Tooltip;