@telefonica/mistica 15.16.3 → 15.17.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.
Files changed (92) hide show
  1. package/css/mistica.css +1 -1
  2. package/css/roboto.css +102 -34
  3. package/dist/box.d.ts +1 -0
  4. package/dist/box.js +11 -10
  5. package/dist/chip.js +21 -22
  6. package/dist/dialog.js +53 -51
  7. package/dist/generated/mistica-icons/icon-box-star-filled.d.ts +4 -0
  8. package/dist/generated/mistica-icons/icon-box-star-filled.js +121 -0
  9. package/dist/generated/mistica-icons/icon-box-star-light.d.ts +4 -0
  10. package/dist/generated/mistica-icons/icon-box-star-light.js +117 -0
  11. package/dist/generated/mistica-icons/icon-box-star-regular.d.ts +4 -0
  12. package/dist/generated/mistica-icons/icon-box-star-regular.js +117 -0
  13. package/dist/generated/mistica-icons/icon-high-priority-filled.d.ts +4 -0
  14. package/dist/generated/mistica-icons/icon-high-priority-filled.js +111 -0
  15. package/dist/generated/mistica-icons/icon-high-priority-light.d.ts +4 -0
  16. package/dist/generated/mistica-icons/icon-high-priority-light.js +111 -0
  17. package/dist/generated/mistica-icons/icon-high-priority-regular.d.ts +4 -0
  18. package/dist/generated/mistica-icons/icon-high-priority-regular.js +111 -0
  19. package/dist/generated/mistica-icons/icon-mms-filled.d.ts +4 -0
  20. package/dist/generated/mistica-icons/icon-mms-filled.js +122 -0
  21. package/dist/generated/mistica-icons/icon-mms-light.d.ts +4 -0
  22. package/dist/generated/mistica-icons/icon-mms-light.js +134 -0
  23. package/dist/generated/mistica-icons/icon-mms-regular.d.ts +4 -0
  24. package/dist/generated/mistica-icons/icon-mms-regular.js +134 -0
  25. package/dist/generated/mistica-icons/icon-vivo-valoriza-filled.d.ts +4 -0
  26. package/dist/generated/mistica-icons/icon-vivo-valoriza-filled.js +111 -0
  27. package/dist/generated/mistica-icons/icon-vivo-valoriza-light.d.ts +4 -0
  28. package/dist/generated/mistica-icons/icon-vivo-valoriza-light.js +117 -0
  29. package/dist/generated/mistica-icons/icon-vivo-valoriza-regular.d.ts +4 -0
  30. package/dist/generated/mistica-icons/icon-vivo-valoriza-regular.js +117 -0
  31. package/dist/generated/mistica-icons/icons-keywords.js +31 -0
  32. package/dist/index.d.ts +12 -0
  33. package/dist/index.js +48 -0
  34. package/dist/list.d.ts +1 -0
  35. package/dist/list.js +163 -157
  36. package/dist/package-version.js +1 -1
  37. package/dist/select.js +103 -95
  38. package/dist/skins/blau.js +96 -8
  39. package/dist/skins/defaults.js +98 -10
  40. package/dist/skins/movistar.js +94 -6
  41. package/dist/skins/o2-new.js +95 -7
  42. package/dist/skins/o2.js +94 -6
  43. package/dist/skins/skin-contract.css-mistica.js +42 -10
  44. package/dist/skins/skin-contract.css.d.ts +32 -0
  45. package/dist/skins/telefonica.js +96 -8
  46. package/dist/skins/tu.js +94 -6
  47. package/dist/skins/types/index.d.ts +36 -28
  48. package/dist/skins/vivo-new.js +95 -7
  49. package/dist/skins/vivo.js +94 -6
  50. package/dist/snackbar.js +53 -51
  51. package/dist/table.js +12 -12
  52. package/dist/theme-context-provider.js +91 -63
  53. package/dist/theme-context.css-mistica.js +452 -0
  54. package/dist/theme-context.css.d.ts +432 -0
  55. package/dist/theme-context.css.ts.vanilla.css-mistica.js +11 -0
  56. package/dist-es/box.js +17 -16
  57. package/dist-es/chip.js +47 -48
  58. package/dist-es/dialog.js +70 -68
  59. package/dist-es/generated/mistica-icons/icon-box-star-filled.js +112 -0
  60. package/dist-es/generated/mistica-icons/icon-box-star-light.js +108 -0
  61. package/dist-es/generated/mistica-icons/icon-box-star-regular.js +108 -0
  62. package/dist-es/generated/mistica-icons/icon-high-priority-filled.js +102 -0
  63. package/dist-es/generated/mistica-icons/icon-high-priority-light.js +102 -0
  64. package/dist-es/generated/mistica-icons/icon-high-priority-regular.js +102 -0
  65. package/dist-es/generated/mistica-icons/icon-mms-filled.js +113 -0
  66. package/dist-es/generated/mistica-icons/icon-mms-light.js +125 -0
  67. package/dist-es/generated/mistica-icons/icon-mms-regular.js +125 -0
  68. package/dist-es/generated/mistica-icons/icon-vivo-valoriza-filled.js +102 -0
  69. package/dist-es/generated/mistica-icons/icon-vivo-valoriza-light.js +108 -0
  70. package/dist-es/generated/mistica-icons/icon-vivo-valoriza-regular.js +108 -0
  71. package/dist-es/generated/mistica-icons/icons-keywords.js +31 -0
  72. package/dist-es/index.js +1563 -1551
  73. package/dist-es/list.js +225 -219
  74. package/dist-es/package-version.js +1 -1
  75. package/dist-es/select.js +146 -138
  76. package/dist-es/skins/blau.js +96 -8
  77. package/dist-es/skins/defaults.js +97 -9
  78. package/dist-es/skins/movistar.js +94 -6
  79. package/dist-es/skins/o2-new.js +95 -7
  80. package/dist-es/skins/o2.js +94 -6
  81. package/dist-es/skins/skin-contract.css-mistica.js +42 -10
  82. package/dist-es/skins/telefonica.js +98 -10
  83. package/dist-es/skins/tu.js +94 -6
  84. package/dist-es/skins/vivo-new.js +95 -7
  85. package/dist-es/skins/vivo.js +94 -6
  86. package/dist-es/snackbar.js +62 -60
  87. package/dist-es/style.css +1 -1
  88. package/dist-es/table.js +31 -31
  89. package/dist-es/theme-context-provider.js +133 -105
  90. package/dist-es/theme-context.css-mistica.js +432 -0
  91. package/dist-es/theme-context.css.ts.vanilla.css-mistica.js +2 -0
  92. package/package.json +2 -3
package/dist-es/table.js CHANGED
@@ -78,9 +78,9 @@ function _object_without_properties_loose(source, excluded) {
78
78
  return target;
79
79
  }
80
80
  import { jsxs as f, jsx as e } from "react/jsx-runtime";
81
- import * as O from "react";
82
- import { getPrefixedDataAttributes as X } from "./utils/dom.js";
83
- import { table as V, boxed as W, collapsedRowsInMobile as M, fullWidth as E, hiddenHeadersInDesktop as ee, hiddenHeadersInMobile as te, cellTextAlign as H, verticalAlign as L, rowFirstItem as N, rowLastItem as R, rowLastCollapsedItem as Y, collapsedRowHeaderItem as le, mobileCellHeading as re, collapsedRowTitle as ae, actionsTableCell as _, topActions as oe, scrollContainer as se, scrollOverResponsiveLayout as ne, vars as ie } from "./table.css-mistica.js";
81
+ import * as x from "react";
82
+ import { getPrefixedDataAttributes as V } from "./utils/dom.js";
83
+ import { table as X, boxed as W, collapsedRowsInMobile as E, fullWidth as M, hiddenHeadersInDesktop as ee, hiddenHeadersInMobile as te, cellTextAlign as _, verticalAlign as N, rowFirstItem as L, rowLastItem as R, rowLastCollapsedItem as H, collapsedRowHeaderItem as le, mobileCellHeading as re, collapsedRowTitle as ae, actionsTableCell as Y, topActions as oe, scrollContainer as se, scrollOverResponsiveLayout as ne, vars as ie } from "./table.css-mistica.js";
84
84
  import { vars as j } from "./skins/skin-contract.css-mistica.js";
85
85
  import ce, { Text1 as F, textProps as h, Text2 as me } from "./text.js";
86
86
  import { InternalBoxed as pe } from "./boxed.js";
@@ -113,7 +113,7 @@ const P = {
113
113
  }),
114
114
  small: !0,
115
115
  bleedY: !0
116
- })), q = "left", xe = /*#__PURE__*/ O.forwardRef((_param, $)=>{
116
+ })), q = "left", Oe = /*#__PURE__*/ x.forwardRef((_param, $)=>{
117
117
  var { dataAttributes: a, heading: m = [], content: k = [], boxed: b, responsive: J, fullWidth: u = !0, maxHeight: v, emptyCase: A, columnTextAlign: T = q, rowVerticalAlign: C = "middle", columnWidth: p, hideHeaders: g, scrollOverResponsiveLayout: K, rowHeaderIndex: s } = _param, S = _object_without_properties(_param, [
118
118
  "dataAttributes",
119
119
  "heading",
@@ -133,11 +133,11 @@ const P = {
133
133
  const z = (l)=>{
134
134
  var _T_l;
135
135
  return Array.isArray(T) ? (_T_l = T[l]) !== null && _T_l !== void 0 ? _T_l : q : T;
136
- }, r = J === "collapse-rows", B = g === !0 || g === "mobile", Q = g === !0 || g === "desktop", y = k.some((l)=>!Array.isArray(l) && l.actions.length > 0), w = /* @__PURE__ */ f("table", {
137
- className: c(V, {
136
+ }, r = J === "collapse-rows", B = g === !0 || g === "mobile", Q = g === !0 || g === "desktop", y = k.some((l)=>!Array.isArray(l) && l.actions.length > 0), D = /* @__PURE__ */ f("table", {
137
+ className: c(X, {
138
138
  [W]: b,
139
- [M]: r,
140
- [E]: u,
139
+ [E]: r,
140
+ [M]: u,
141
141
  [ee]: Q,
142
142
  [te]: B || r
143
143
  }),
@@ -155,8 +155,8 @@ const P = {
155
155
  children: [
156
156
  m.map((l, o)=>/* @__PURE__ */ e("th", {
157
157
  scope: "col",
158
- className: c(H[z(o)], L[C], {
159
- [N]: o === 0,
158
+ className: c(_[z(o)], N[C], {
159
+ [L]: o === 0,
160
160
  [R]: o === m.length - 1 && !y
161
161
  }),
162
162
  style: {
@@ -172,9 +172,9 @@ const P = {
172
172
  /* @__PURE__ */ e("tbody", {
173
173
  children: k.length > 0 ? k.map((l, o)=>{
174
174
  var _l_actions;
175
- const n = Array.isArray(l) ? l : l.cells, i = Array.isArray(l) ? [] : (_l_actions = l.actions) !== null && _l_actions !== void 0 ? _l_actions : [], D = /* @__PURE__ */ e(be, {
175
+ const n = Array.isArray(l) ? l : l.cells, i = Array.isArray(l) ? [] : (_l_actions = l.actions) !== null && _l_actions !== void 0 ? _l_actions : [], w = /* @__PURE__ */ e(be, {
176
176
  space: 16,
177
- children: i.map((d, t)=>"Icon" in d || "checkedProps" in d ? /* @__PURE__ */ e(ke, _object_spread({}, d), t) : /* @__PURE__ */ e(O.Fragment, {
177
+ children: i.map((d, t)=>"Icon" in d || "checkedProps" in d ? /* @__PURE__ */ e(ke, _object_spread({}, d), t) : /* @__PURE__ */ e(x.Fragment, {
178
178
  children: d
179
179
  }, t))
180
180
  }), I = i.length ? `calc(${G.small} * ${i.length} + 16px * ${i.length - 1})` : "0px";
@@ -187,10 +187,10 @@ const P = {
187
187
  n.map((d, t)=>{
188
188
  const U = s === n.length - 1 ? t === n.length - 2 || n.length === 1 : t === n.length - 1;
189
189
  return /* @__PURE__ */ f(t === s ? "th" : "td", {
190
- className: c(L[C], {
191
- [N]: t === 0,
190
+ className: c(N[C], {
191
+ [L]: t === 0,
192
192
  [R]: t === n.length - 1 && !y,
193
- [Y]: U && r,
193
+ [H]: U && r,
194
194
  [le]: t === s && r
195
195
  }),
196
196
  style: {
@@ -222,7 +222,7 @@ const P = {
222
222
  as: "div",
223
223
  wordBreak: !1,
224
224
  children: /* @__PURE__ */ e("div", {
225
- className: c(H[z(t)], {
225
+ className: c(_[z(t)], {
226
226
  [ae]: t === s && r
227
227
  }),
228
228
  children: d
@@ -232,18 +232,18 @@ const P = {
232
232
  }, t);
233
233
  }),
234
234
  i.length > 0 ? /* @__PURE__ */ e("td", {
235
- className: c(L[C], _, R, {
236
- [N]: n.length === 0
235
+ className: c(N[C], Y, R, {
236
+ [L]: n.length === 0
237
237
  }),
238
238
  align: "right",
239
239
  style: {
240
240
  width: `calc(${I} + 12px)`
241
241
  },
242
- children: D
242
+ children: w
243
243
  }) : y && /* @__PURE__ */ e("td", {
244
- className: _
244
+ className: Y
245
245
  }),
246
- r && i.length > 0 && /* @__PURE__ */ e("td", {
246
+ process.env.NODE_ENV !== "test" && r && i.length > 0 && /* @__PURE__ */ e("td", {
247
247
  className: oe,
248
248
  style: {
249
249
  position: "absolute",
@@ -251,7 +251,7 @@ const P = {
251
251
  right: b ? `calc(${P.boxed} - ${Z})` : 0,
252
252
  width: I
253
253
  },
254
- children: D
254
+ children: w
255
255
  })
256
256
  ]
257
257
  }, o));
@@ -259,7 +259,7 @@ const P = {
259
259
  children: /* @__PURE__ */ e("td", {
260
260
  colSpan: m.length,
261
261
  className: c({
262
- [Y]: r
262
+ [H]: r
263
263
  }),
264
264
  children: typeof A == "string" ? /* @__PURE__ */ e(de, {
265
265
  paddingY: 56,
@@ -274,13 +274,13 @@ const P = {
274
274
  })
275
275
  })
276
276
  ]
277
- }), x = function() {
277
+ }), O = function() {
278
278
  let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
279
279
  return {
280
280
  className: c(se, {
281
281
  [ne]: l,
282
- [M]: r,
283
- [E]: u
282
+ [E]: r,
283
+ [M]: u
284
284
  }),
285
285
  style: he({
286
286
  [ie.maxHeight]: typeof v == "number" ? `${v}px` : v !== null && v !== void 0 ? v : "auto"
@@ -299,13 +299,13 @@ const P = {
299
299
  dataAttributes: _object_spread({
300
300
  "component-name": "Table"
301
301
  }, a),
302
- children: /* @__PURE__ */ e("div", _object_spread_props(_object_spread({}, x()), {
303
- children: w
302
+ children: /* @__PURE__ */ e("div", _object_spread_props(_object_spread({}, O()), {
303
+ children: D
304
304
  }))
305
305
  }) : /* @__PURE__ */ e("div", _object_spread_props(_object_spread({
306
306
  ref: $
307
- }, X(a, "Table"), x(K)), {
308
- children: w
307
+ }, V(a, "Table"), O(K)), {
308
+ children: D
309
309
  }));
310
310
  });
311
- export { xe as Table };
311
+ export { Oe as Table };
@@ -27,158 +27,186 @@ function _object_spread(target) {
27
27
  }
28
28
  return target;
29
29
  }
30
- import { jsxs as b, Fragment as C, jsx as r } from "react/jsx-runtime";
30
+ import { jsxs as P, Fragment as M, jsx as r } from "react/jsx-runtime";
31
31
  import * as o from "react";
32
- import { assignInlineVars as D } from "@vanilla-extract/dynamic";
33
- import { DialogRoot as R } from "./dialog-context.js";
34
- import O from "./screen-size-context-provider.js";
35
- import V from "./aria-id-getter-context.js";
36
- import { getTexts as N, dimensions as y, getMisticaLinkComponent as A, NAVBAR_HEIGHT_MOBILE as H } from "./theme.js";
37
- import { getPlatform as _, isInsideNovumNativeApp as j } from "./utils/platform.js";
38
- import F from "./theme-context.js";
39
- import { useIsomorphicLayoutEffect as M } from "./hooks.js";
40
- import L from "./tab-focus.js";
41
- import $ from "./modal-context-provider.js";
42
- import B from "./tooltip-context-provider.js";
43
- import { DocumentVisibilityProvider as G } from "./utils/document-visibility.js";
44
- import { AspectRatioSupportProvider as z } from "./utils/aspect-ratio-support.js";
45
- import { TrackingConfig as W } from "./utils/analytics.js";
46
- import { vars as q } from "./skins/skin-contract.css-mistica.js";
47
- import { fromHexToRgb as K } from "./utils/color.js";
48
- import { defaultTextPresetsConfig as J, defaultBorderRadiiConfig as Q } from "./skins/defaults.js";
49
- import { isClientSide as P } from "./utils/environment.js";
50
- import { PACKAGE_VERSION as E } from "./package-version.js";
51
- import { SnackbarRoot as U } from "./snackbar-context.js";
52
- import { mapToWeight as X } from "./text.js";
53
- if (process.env.NODE_ENV !== "production" && P()) {
54
- if (window.__mistica_version__ && window.__mistica_version__ !== E) throw new Error("There is more than one version of @telefonica/mistica running on the same page");
55
- window.__mistica_version__ = E;
32
+ import { assignInlineVars as h } from "@vanilla-extract/dynamic";
33
+ import { DialogRoot as D } from "./dialog-context.js";
34
+ import $ from "./screen-size-context-provider.js";
35
+ import N from "./aria-id-getter-context.js";
36
+ import { getTexts as j, dimensions as y, getMisticaLinkComponent as A, NAVBAR_HEIGHT_MOBILE as z } from "./theme.js";
37
+ import { getPlatform as _, isInsideNovumNativeApp as F } from "./utils/platform.js";
38
+ import L from "./theme-context.js";
39
+ import { useIsomorphicLayoutEffect as I } from "./hooks.js";
40
+ import B from "./tab-focus.js";
41
+ import G from "./modal-context-provider.js";
42
+ import W from "./tooltip-context-provider.js";
43
+ import { DocumentVisibilityProvider as q } from "./utils/document-visibility.js";
44
+ import { AspectRatioSupportProvider as K } from "./utils/aspect-ratio-support.js";
45
+ import { TrackingConfig as J } from "./utils/analytics.js";
46
+ import { vars as E } from "./skins/skin-contract.css-mistica.js";
47
+ import { fromHexToRgb as Q } from "./utils/color.js";
48
+ import { defaultTextPresetsConfig as U, defaultBorderRadiiConfig as X } from "./skins/defaults.js";
49
+ import { isClientSide as O } from "./utils/environment.js";
50
+ import { PACKAGE_VERSION as w } from "./package-version.js";
51
+ import { SnackbarRoot as Y } from "./snackbar-context.js";
52
+ import { mapToWeight as S } from "./text.js";
53
+ import { tabletOrSmaller as Z } from "./media-queries.css-mistica.js";
54
+ import { themeVarsContract as ee, textPresetResponsiveVarsContract as te, themeVars as re } from "./theme-context.css-mistica.js";
55
+ if (process.env.NODE_ENV !== "production" && O()) {
56
+ if (window.__mistica_version__ && window.__mistica_version__ !== w) throw new Error("There is more than one version of @telefonica/mistica running on the same page");
57
+ window.__mistica_version__ = w;
56
58
  }
57
- const Y = "(prefers-color-scheme: dark)", Z = ()=>{
58
- const [e, i] = o.useState(!1);
59
- return M(()=>{
59
+ const oe = "(prefers-color-scheme: dark)", se = ()=>{
60
+ const [e, l] = o.useState(!1);
61
+ return I(()=>{
60
62
  if (!window.matchMedia) return;
61
- const s = window.matchMedia(Y), t = ()=>{
62
- i(s.matches);
63
+ const i = window.matchMedia(oe), s = ()=>{
64
+ l(i.matches);
63
65
  };
64
- return s.addEventListener("change", t), t(), ()=>{
65
- s.removeEventListener("change", t);
66
+ return i.addEventListener("change", s), s(), ()=>{
67
+ i.removeEventListener("change", s);
66
68
  };
67
69
  }, []), e;
68
- }, ee = ()=>(e)=>e, re = (e)=>({
69
- headerMobileHeight: (e == null ? void 0 : e.headerMobileHeight) === "mistica" ? H : e == null ? void 0 : e.headerMobileHeight
70
- }), te = ()=>{
71
- const e = o.useRef(null), [i, s] = o.useState(!1), [t, v] = o.useState(!0);
72
- return M(()=>{
73
- var m;
74
- if (t) v(!1);
70
+ }, ie = ()=>(e)=>e, ne = (e)=>({
71
+ headerMobileHeight: (e == null ? void 0 : e.headerMobileHeight) === "mistica" ? z : e == null ? void 0 : e.headerMobileHeight
72
+ }), ae = ()=>{
73
+ const e = o.useRef(null), [l, i] = o.useState(!1), [s, v] = o.useState(!0);
74
+ return I(()=>{
75
+ var d;
76
+ if (s) v(!1);
75
77
  else {
76
- const f = (m = e.current) == null ? void 0 : m.parentElement;
77
- f && (f.style.isolation = "isolate", s(!0));
78
+ const p = (d = e.current) == null ? void 0 : d.parentElement;
79
+ p && (p.style.isolation = "isolate", i(!0));
78
80
  }
79
81
  }, [
80
- t
81
- ]), i || !P() || t ? null : /* @__PURE__ */ r("div", {
82
+ s
83
+ ]), l || !O() || s ? null : /* @__PURE__ */ r("div", {
82
84
  ref: e,
83
85
  style: {
84
86
  display: "none"
85
87
  }
86
88
  });
87
- }, oe = (param)=>{
88
- let { theme: e, children: i, as: s, withoutStyles: t = !1 } = param;
89
+ }, le = (param)=>{
90
+ let { theme: e, children: l, as: i, withoutStyles: s = !1 } = param;
89
91
  var _e_colorScheme, _e_skin_borderRadii;
90
- const v = o.useRef(1), m = o.useCallback(()=>`aria-id-hook-${v.current++}`, []), f = Z(), h = (_e_colorScheme = e.colorScheme) !== null && _e_colorScheme !== void 0 ? _e_colorScheme : "auto", I = e.skin.colors, T = _object_spread({}, e.skin.colors, e.skin.darkModeColors), g = h === "auto" && f || h === "dark", l = g ? T : I, u = o.useMemo(()=>{
92
+ const v = o.useRef(1), d = o.useCallback(()=>`aria-id-hook-${v.current++}`, []), p = se(), k = (_e_colorScheme = e.colorScheme) !== null && _e_colorScheme !== void 0 ? _e_colorScheme : "auto", R = e.skin.colors, T = _object_spread({}, e.skin.colors, e.skin.darkModeColors), x = k === "auto" && p || k === "dark", m = x ? T : R, c = o.useMemo(()=>{
91
93
  const n = _object_spread({
92
94
  platform: _(),
93
- insideNovumNativeApp: j()
94
- }, e.platformOverrides), d = Object.entries(J).map((param)=>{
95
- let [c, k] = param;
96
- var p;
95
+ insideNovumNativeApp: F()
96
+ }, e.platformOverrides), a = Object.entries(U).map((param)=>{
97
+ let [u, g] = param;
98
+ var f;
97
99
  return {
98
- [c]: _object_spread({}, k, (p = e.skin.textPresets) == null ? void 0 : p[c])
100
+ [u]: _object_spread({}, g, (f = e.skin.textPresets) == null ? void 0 : f[u])
99
101
  };
100
- }), a = Object.assign({}, ...d);
102
+ }), t = Object.assign({}, ...a);
101
103
  var _e_useHrefDecorator;
102
104
  return {
103
105
  skinName: e.skin.name,
104
106
  i18n: e.i18n,
105
107
  platformOverrides: n,
106
- texts: _object_spread({}, N(e.i18n.locale), e.texts),
108
+ texts: _object_spread({}, j(e.i18n.locale), e.texts),
107
109
  analytics: _object_spread({
108
110
  logEvent: ()=>Promise.resolve(),
109
111
  eventFormat: "universal-analytics"
110
112
  }, e.analytics),
111
- colorValues: l,
112
- dimensions: _object_spread({}, y, re(e.dimensions)),
113
- textPresets: a,
113
+ colorValues: m,
114
+ dimensions: _object_spread({}, y, ne(e.dimensions)),
115
+ textPresets: t,
114
116
  Link: A(e.Link),
115
- isDarkMode: g,
117
+ isDarkMode: x,
116
118
  isIos: _(n) === "ios",
117
- useHrefDecorator: (_e_useHrefDecorator = e.useHrefDecorator) !== null && _e_useHrefDecorator !== void 0 ? _e_useHrefDecorator : ee,
119
+ useHrefDecorator: (_e_useHrefDecorator = e.useHrefDecorator) !== null && _e_useHrefDecorator !== void 0 ? _e_useHrefDecorator : ie,
118
120
  useId: e.useId
119
121
  };
120
122
  }, [
121
- l,
123
+ m,
122
124
  e,
123
- g
124
- ]), S = o.useMemo(()=>Object.fromEntries(Object.entries(l).map((param)=>{
125
- let [n, d] = param;
126
- let a = "";
127
- if (d.startsWith("#")) {
128
- const [c, k, p] = K(d);
129
- a = `${c}, ${k}, ${p}`;
125
+ x
126
+ ]), H = o.useMemo(()=>Object.fromEntries(Object.entries(m).map((param)=>{
127
+ let [n, a] = param;
128
+ let t = "";
129
+ if (a.startsWith("#")) {
130
+ const [u, g, f] = Q(a);
131
+ t = `${u}, ${g}, ${f}`;
130
132
  }
131
133
  return [
132
134
  n,
133
- a
135
+ t
134
136
  ];
135
137
  })), [
136
- l
137
- ]), w = o.useMemo(()=>{
138
- const n = Object.entries(u.textPresets).map((param)=>{
139
- let [a, c] = param;
138
+ m
139
+ ]), V = o.useMemo(()=>{
140
+ const n = Object.entries(c.textPresets).map((param)=>{
141
+ let [a, t] = param;
140
142
  return {
141
- [a]: {
142
- weight: String(X[c.weight])
143
- }
143
+ [a]: _object_spread({}, t.weight && {
144
+ weight: String(S[t.weight])
145
+ }, t.size && {
146
+ size: `${t.size.desktop}px`
147
+ }, t.lineHeight && {
148
+ lineHeight: `${t.lineHeight.desktop}px`
149
+ })
144
150
  };
145
151
  });
146
152
  return Object.assign({}, ...n);
147
153
  }, [
148
- u
149
- ]), x = D(q, {
150
- textPresets: w,
151
- colors: l,
152
- rawColors: S,
153
- borderRadii: (_e_skin_borderRadii = e.skin.borderRadii) !== null && _e_skin_borderRadii !== void 0 ? _e_skin_borderRadii : Q
154
- });
155
- return /* @__PURE__ */ b(C, {
154
+ c
155
+ ]), b = o.useMemo(()=>{
156
+ const n = Object.entries(c.textPresets).map((param)=>{
157
+ let [a, t] = param;
158
+ return {
159
+ [a]: _object_spread({}, t.weight && {
160
+ weight: String(S[t.weight])
161
+ }, t.size && {
162
+ size: `${t.size.mobile}px`
163
+ }, t.lineHeight && {
164
+ lineHeight: `${t.lineHeight.mobile}px`
165
+ })
166
+ };
167
+ });
168
+ return Object.assign({}, ...n);
169
+ }, [
170
+ c
171
+ ]), C = {
172
+ textPresets: V,
173
+ colors: m,
174
+ rawColors: H,
175
+ borderRadii: (_e_skin_borderRadii = e.skin.borderRadii) !== null && _e_skin_borderRadii !== void 0 ? _e_skin_borderRadii : X
176
+ };
177
+ return /* @__PURE__ */ P(M, {
156
178
  children: [
157
- /* @__PURE__ */ r(L, {
179
+ /* @__PURE__ */ r(B, {
158
180
  disabled: !e.enableTabFocus,
159
- children: /* @__PURE__ */ r($, {
160
- children: /* @__PURE__ */ r(B, {
161
- children: /* @__PURE__ */ r(F.Provider, {
162
- value: u,
163
- children: /* @__PURE__ */ r(W, {
164
- eventFormat: u.analytics.eventFormat,
165
- children: /* @__PURE__ */ r(z, {
166
- children: /* @__PURE__ */ r(G, {
167
- children: /* @__PURE__ */ r(V.Provider, {
168
- value: m,
169
- children: /* @__PURE__ */ r(O, {
170
- children: /* @__PURE__ */ r(R, {
171
- children: /* @__PURE__ */ r(U, {
172
- children: s ? /*#__PURE__*/ o.createElement(s, {
181
+ children: /* @__PURE__ */ r(G, {
182
+ children: /* @__PURE__ */ r(W, {
183
+ children: /* @__PURE__ */ r(L.Provider, {
184
+ value: c,
185
+ children: /* @__PURE__ */ r(J, {
186
+ eventFormat: c.analytics.eventFormat,
187
+ children: /* @__PURE__ */ r(K, {
188
+ children: /* @__PURE__ */ r(q, {
189
+ children: /* @__PURE__ */ r(N.Provider, {
190
+ value: d,
191
+ children: /* @__PURE__ */ r($, {
192
+ children: /* @__PURE__ */ r(D, {
193
+ children: /* @__PURE__ */ r(Y, {
194
+ children: i ? /*#__PURE__*/ o.createElement(i, {
173
195
  style: _object_spread({
174
196
  isolation: "isolate"
175
- }, t ? {} : x)
176
- }, i) : /* @__PURE__ */ b(C, {
197
+ }, h(ee, C), h(te, b)),
198
+ className: s ? void 0 : re
199
+ }, l) : /* @__PURE__ */ P(M, {
177
200
  children: [
178
- !t && (process.env.NODE_ENV !== "test" || process.env.SSR_TEST) && /* @__PURE__ */ r("style", {
179
- children: `:root {${x}}`
201
+ !s && (process.env.NODE_ENV !== "test" || process.env.SSR_TEST) && /* @__PURE__ */ r("style", {
202
+ children: `
203
+ :root {${h(E, C)}}
204
+ @media ${Z} {
205
+ :root {${h(E.textPresets, b)}}
206
+ }
207
+ `
180
208
  }),
181
- i
209
+ l
182
210
  ]
183
211
  })
184
212
  })
@@ -192,8 +220,8 @@ const Y = "(prefers-color-scheme: dark)", Z = ()=>{
192
220
  })
193
221
  })
194
222
  }),
195
- !s && /* @__PURE__ */ r(te, {})
223
+ !i && /* @__PURE__ */ r(ae, {})
196
224
  ]
197
225
  });
198
- }, Ie = oe;
199
- export { Ie as default, Z as useIsOsDarkModeEnabled };
226
+ }, Ve = le;
227
+ export { Ve as default, se as useIsOsDarkModeEnabled };