@telefonica/mistica 13.5.0 → 13.6.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/menu.js CHANGED
@@ -4,16 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "default", {
6
6
  enumerable: true,
7
- get: ()=>Y
7
+ get: ()=>rt
8
8
  });
9
9
  const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
10
10
  const _classnames = /*#__PURE__*/ _interopRequireDefault(require("classnames"));
11
- const _dynamic = require("@vanilla-extract/dynamic");
12
11
  const _keyCodesJs = require("./utils/key-codes.js");
13
12
  const _domJs = require("./utils/dom.js");
14
13
  const _overlayJs = /*#__PURE__*/ _interopRequireDefault(require("./overlay.js"));
15
14
  const _menuCssMisticaJs = require("./menu.css-mistica.js");
16
- const _sprinklesCssMisticaJs = require("./sprinkles.css-mistica.js");
15
+ const _hooksJs = require("./hooks.js");
16
+ const _portalJs = require("./portal.js");
17
+ const _dynamic = require("@vanilla-extract/dynamic");
17
18
  const _jsxRuntimeJs = require("./_virtual/jsx-runtime.js");
18
19
  function _interopRequireDefault(obj) {
19
20
  return obj && obj.__esModule ? obj : {
@@ -111,102 +112,105 @@ function _objectSpreadProps(target, source) {
111
112
  }
112
113
  return target;
113
114
  }
114
- const h = 416, Y = (param)=>{
115
- let { renderTarget: I , renderMenu: b , width: l , position: d = "left" , dataAttributes: v } = param;
116
- const [t, i] = _react.useState(!1), [a, w] = _react.useState(null), [u, y] = _react.useState(null), [H, x] = _react.useState(!1), [r, c] = _react.useState(null);
115
+ const J = 350, f = 400, v = 12, rt = (param)=>{
116
+ let { renderTarget: y , renderMenu: A , width: c = J , position: O = "left" , dataAttributes: P } = param;
117
+ const [e, i] = _react.useState(!1), [a, M] = _react.useState(null), [u, C] = _react.useState(null), [T, w] = _react.useState(!1), [s, m] = _react.useState(null), p = (0, _hooksJs.useWindowSize)();
117
118
  _react.useEffect(()=>{
118
- var M;
119
+ var I;
119
120
  const o = a == null ? void 0 : a.getBoundingClientRect();
120
- if (!u || !o || !t) {
121
- x(!1);
121
+ if (!u || !o || !e) {
122
+ w(!1);
122
123
  return;
123
124
  }
124
- const n = 12, { top: f , width: O , height: C } = o, m = f + C, P = (M = parseInt(window.getComputedStyle(u).getPropertyValue("height"))) != null ? M : 0, p = d === "left" ? "auto" : `calc(100% - ${O}px)`;
125
- if (m + P + n > window.innerHeight) {
126
- const T = window.innerHeight - m;
127
- f > T ? c({
128
- right: p,
129
- bottom: "100%",
130
- top: "auto",
131
- maxHeight: Math.min(f, h),
132
- transformOrigin: "center bottom"
133
- }) : c({
134
- top: "100%",
135
- bottom: "auto",
136
- right: p,
137
- maxHeight: Math.min(window.innerHeight - m - n, h),
138
- transformOrigin: "center top"
139
- });
140
- } else c({
141
- top: "100%",
125
+ const { top: n , width: $ , left: E , bottom: d } = o, g = (I = parseInt(window.getComputedStyle(u).getPropertyValue("height"))) != null ? I : 0, l = O === "left" ? E : E + $ - c, h = p.height - d - v, x = n - v, L = h > g, R = x > g;
126
+ L ? m({
127
+ left: l,
128
+ top: `${d}px`,
129
+ bottom: "auto",
130
+ maxHeight: f,
131
+ transformOrigin: "center top"
132
+ }) : R ? m({
133
+ left: l,
134
+ top: `${n - g}px`,
135
+ bottom: "auto",
136
+ maxHeight: f,
137
+ transformOrigin: "center bottom"
138
+ }) : h > x ? m({
139
+ left: l,
140
+ top: `${d}px`,
142
141
  bottom: "auto",
143
- right: p,
144
- maxHeight: Math.min(window.innerHeight - m - n, h),
142
+ maxHeight: Math.min(h, f),
145
143
  transformOrigin: "center top"
144
+ }) : m({
145
+ left: l,
146
+ top: "auto",
147
+ bottom: `${p.height - n}px`,
148
+ maxHeight: Math.min(x, f),
149
+ transformOrigin: "center bottom"
146
150
  });
147
- let g;
148
- return t && (g = requestAnimationFrame(()=>{
149
- x(!0);
151
+ let S;
152
+ return e && (S = requestAnimationFrame(()=>{
153
+ w(!0);
150
154
  })), ()=>{
151
- g && cancelAnimationFrame(g);
155
+ S && cancelAnimationFrame(S);
152
156
  };
153
157
  }, [
154
- d,
155
- t,
158
+ O,
159
+ e,
156
160
  u,
157
161
  a,
158
- l
162
+ c,
163
+ p
159
164
  ]);
160
- const A = _react.useMemo(()=>({
161
- ref: w,
165
+ const D = _react.useMemo(()=>({
166
+ ref: M,
162
167
  onPress: ()=>{
163
- i(!t);
168
+ i(!e);
164
169
  }
165
170
  }), [
166
- w,
167
- t,
171
+ M,
172
+ e,
168
173
  i
169
- ]), E = _react.useMemo(()=>({
170
- ref: y,
171
- className: (0, _classnames.default)(_menuCssMisticaJs.menuContainer, H ? _menuCssMisticaJs.showItems : _menuCssMisticaJs.hideItems),
174
+ ]), F = _react.useMemo(()=>({
175
+ ref: C,
176
+ className: (0, _classnames.default)(_menuCssMisticaJs.menuContainer, T ? _menuCssMisticaJs.showItems : _menuCssMisticaJs.hideItems),
172
177
  close: ()=>{
173
178
  i(!1);
174
179
  }
175
180
  }), [
176
- H
181
+ T
177
182
  ]);
178
183
  return _react.useEffect(()=>{
179
184
  const o = (n)=>{
180
- t && (n.keyCode === _keyCodesJs.TAB && (0, _domJs.cancelEvent)(n), n.keyCode === _keyCodesJs.ESC && i(!1));
185
+ e && (n.keyCode === _keyCodesJs.TAB && (0, _domJs.cancelEvent)(n), n.keyCode === _keyCodesJs.ESC && i(!1));
181
186
  };
182
187
  return document.addEventListener("keydown", o, !1), ()=>{
183
188
  document.removeEventListener("keydown", o, !1);
184
189
  };
185
- }), /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", _objectSpreadProps(_objectSpread({
186
- className: (0, _sprinklesCssMisticaJs.sprinkles)({
187
- position: "relative"
188
- }),
189
- style: _objectSpread({}, (0, _dynamic.assignInlineVars)(_objectSpread({
190
- [_menuCssMisticaJs.vars.width]: l ? `${l}px` : "100%"
191
- }, r ? {
192
- [_menuCssMisticaJs.vars.top]: r.top,
193
- [_menuCssMisticaJs.vars.bottom]: r.bottom,
194
- [_menuCssMisticaJs.vars.right]: r.right,
195
- [_menuCssMisticaJs.vars.transformOrigin]: r.transformOrigin,
196
- [_menuCssMisticaJs.vars.maxHeight]: `${r.maxHeight}px`
197
- } : {})))
198
- }, (0, _domJs.getPrefixedDataAttributes)(v, "Menu")), {
190
+ }), /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", _objectSpreadProps(_objectSpread({}, (0, _domJs.getPrefixedDataAttributes)(P, "Menu")), {
199
191
  children: [
200
- t ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_overlayJs.default, {
201
- onPress: (o)=>{
202
- (0, _domJs.cancelEvent)(o), i(!1);
203
- },
204
- disableScroll: !0
205
- }) : null,
206
- I(_objectSpreadProps(_objectSpread({}, A), {
207
- isMenuOpen: t
192
+ y(_objectSpreadProps(_objectSpread({}, D), {
193
+ isMenuOpen: e
208
194
  })),
209
- t ? b(E) : null
195
+ e ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_portalJs.Portal, {
196
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_overlayJs.default, {
197
+ onPress: (o)=>{
198
+ (0, _domJs.cancelEvent)(o), i(!1);
199
+ },
200
+ disableScroll: !0,
201
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
202
+ style: _objectSpread({}, (0, _dynamic.assignInlineVars)(_objectSpread({}, s ? {
203
+ [_menuCssMisticaJs.vars.top]: s.top,
204
+ [_menuCssMisticaJs.vars.bottom]: s.bottom,
205
+ [_menuCssMisticaJs.vars.left]: `${s.left}px`,
206
+ [_menuCssMisticaJs.vars.transformOrigin]: s.transformOrigin,
207
+ [_menuCssMisticaJs.vars.maxHeight]: `${s.maxHeight}px`,
208
+ [_menuCssMisticaJs.vars.width]: `${c}px`
209
+ } : {}))),
210
+ children: A(F)
211
+ })
212
+ })
213
+ }) : null
210
214
  ]
211
215
  }));
212
216
  };
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "PACKAGE_VERSION", {
6
6
  enumerable: true,
7
7
  get: ()=>o
8
8
  });
9
- const o = "13.5.0";
9
+ const o = "13.6.0";
package/dist/text.d.ts CHANGED
@@ -15,6 +15,8 @@ export interface TextPresetProps {
15
15
  role?: string;
16
16
  'aria-level'?: number;
17
17
  dataAttributes?: DataAttributes;
18
+ forceMobileSizes?: boolean;
19
+ textShadow?: string;
18
20
  }
19
21
  interface TextProps extends TextPresetProps {
20
22
  weight?: FontWeight;
@@ -31,6 +33,7 @@ interface TextProps extends TextPresetProps {
31
33
  /** in pixels, will be converted to rem in runtime */
32
34
  desktopLineHeight?: string | number;
33
35
  letterSpacing?: number;
36
+ forzeMobileSize?: never;
34
37
  }
35
38
  export declare const Text: React.FC<TextProps>;
36
39
  interface LightProps extends TextPresetProps {
package/dist/text.js CHANGED
@@ -9,18 +9,18 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- Text: ()=>n,
13
- Text1: ()=>le,
14
- Text10: ()=>ie,
15
- Text2: ()=>pe,
16
- Text3: ()=>xe,
17
- Text4: ()=>ae,
18
- Text5: ()=>me,
19
- Text6: ()=>se,
20
- Text7: ()=>re,
21
- Text8: ()=>ne,
22
- Text9: ()=>oe,
23
- default: ()=>n
12
+ Text: ()=>r,
13
+ Text1: ()=>he,
14
+ Text10: ()=>ne,
15
+ Text2: ()=>ge,
16
+ Text3: ()=>le,
17
+ Text4: ()=>pe,
18
+ Text5: ()=>ae,
19
+ Text6: ()=>xe,
20
+ Text7: ()=>me,
21
+ Text8: ()=>se,
22
+ Text9: ()=>re,
23
+ default: ()=>r
24
24
  });
25
25
  const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
26
26
  const _classnames = /*#__PURE__*/ _interopRequireDefault(require("classnames"));
@@ -155,195 +155,238 @@ function _objectWithoutPropertiesLoose(source, excluded) {
155
155
  }
156
156
  return target;
157
157
  }
158
- const G = {
158
+ const K = {
159
159
  light: 300,
160
160
  regular: 400,
161
161
  medium: 500,
162
162
  bold: 700
163
- }, J = (e)=>e === !0 ? 1 : e || "initial", n = (param)=>{
164
- let { weight: e , color: t = _skinContractCssMisticaJs.vars.colors.textPrimary , decoration: i , truncate: s , transform: L , wordBreak: g = !0 , hyphens: f , as: z = "span" , children: l , size: h , mobileSize: c = h , desktopSize: u = h , lineHeight: d , mobileLineHeight: b = d , desktopLineHeight: T = d , letterSpacing: w , textAlign: H , id: v , role: A , "aria-level": P , dataAttributes: y } = param;
163
+ }, Q = (e)=>e === !0 ? 1 : e || "initial", r = (param)=>{
164
+ let { weight: e , color: i = _skinContractCssMisticaJs.vars.colors.textPrimary , decoration: t , truncate: o , transform: g , wordBreak: c = !0 , hyphens: z , as: H = "span" , children: h , size: u , mobileSize: d = u , desktopSize: b = u , lineHeight: T , mobileLineHeight: k = T , desktopLineHeight: L = T , letterSpacing: w , textAlign: v , textShadow: A , id: P , role: y , "aria-level": I , dataAttributes: W } = param;
165
165
  var S;
166
- const I = (0, _themeVariantContextJs.useIsInverseVariant)(), W = J(s), V = {
166
+ const V = (0, _themeVariantContextJs.useIsInverseVariant)(), C = Q(o), D = {
167
167
  [_skinContractCssMisticaJs.vars.colors.textPrimary]: _skinContractCssMisticaJs.vars.colors.textPrimaryInverse,
168
168
  [_skinContractCssMisticaJs.vars.colors.textSecondary]: _skinContractCssMisticaJs.vars.colors.textSecondaryInverse,
169
169
  [_skinContractCssMisticaJs.vars.colors.textLink]: _skinContractCssMisticaJs.vars.colors.textLinkInverse
170
170
  };
171
- if (!l && l !== 0) return null;
172
- const C = (0, _classnames.default)(_textCssMisticaJs.text, g ? _textCssMisticaJs.withWordBreak : _textCssMisticaJs.withoutWordBreak, {
173
- [_textCssMisticaJs.truncateToOneLine]: s === 1 || s === !0,
174
- [_textCssMisticaJs.truncateToMoreThanOneLine]: s && s > 1
175
- }), D = (0, _dynamic.assignInlineVars)({
176
- [_textCssMisticaJs.vars.mobileSize]: c ? (0, _cssJs.pxToRem)(c) : "",
177
- [_textCssMisticaJs.vars.mobileLineHeight]: b ? (0, _cssJs.pxToRem)(b) : "",
178
- [_textCssMisticaJs.vars.desktopSize]: u ? (0, _cssJs.pxToRem)(u) : "",
179
- [_textCssMisticaJs.vars.desktopLineHeight]: T ? (0, _cssJs.pxToRem)(T) : ""
180
- }), M = s ? (0, _dynamic.assignInlineVars)({
181
- [_textCssMisticaJs.vars.lineClamp]: String(W)
171
+ if (!h && h !== 0) return null;
172
+ const M = (0, _classnames.default)(_textCssMisticaJs.text, c ? _textCssMisticaJs.withWordBreak : _textCssMisticaJs.withoutWordBreak, {
173
+ [_textCssMisticaJs.truncateToOneLine]: o === 1 || o === !0,
174
+ [_textCssMisticaJs.truncateToMoreThanOneLine]: o && o > 1
175
+ }), O = (0, _dynamic.assignInlineVars)({
176
+ [_textCssMisticaJs.vars.mobileSize]: d ? (0, _cssJs.pxToRem)(d) : "",
177
+ [_textCssMisticaJs.vars.mobileLineHeight]: k ? (0, _cssJs.pxToRem)(k) : "",
178
+ [_textCssMisticaJs.vars.desktopSize]: b ? (0, _cssJs.pxToRem)(b) : "",
179
+ [_textCssMisticaJs.vars.desktopLineHeight]: L ? (0, _cssJs.pxToRem)(L) : ""
180
+ }), R = o ? (0, _dynamic.assignInlineVars)({
181
+ [_textCssMisticaJs.vars.lineClamp]: String(C)
182
182
  }) : {};
183
- return /*#__PURE__*/ _react.createElement(z, _objectSpreadProps(_objectSpread({
184
- className: C,
185
- id: v,
186
- role: A,
187
- "aria-level": P
188
- }, (0, _domJs.getPrefixedDataAttributes)(y)), {
189
- style: _objectSpreadProps(_objectSpread({}, D, M), {
190
- hyphens: f,
183
+ return /*#__PURE__*/ _react.createElement(H, _objectSpreadProps(_objectSpread({
184
+ className: M,
185
+ id: P,
186
+ role: y,
187
+ "aria-level": I
188
+ }, (0, _domJs.getPrefixedDataAttributes)(W)), {
189
+ style: _objectSpreadProps(_objectSpread({}, O, R), {
190
+ hyphens: z,
191
191
  letterSpacing: w,
192
- fontWeight: e ? G[e] : "inherit",
193
- textTransform: L || "inherit",
194
- textDecoration: i != null ? i : "inherit",
195
- overflowWrap: g ? "anywhere" : "inherit",
196
- color: I && (S = V[t]) != null ? S : t,
197
- textAlign: H
192
+ fontWeight: e ? K[e] : "inherit",
193
+ textTransform: g || "inherit",
194
+ textDecoration: t != null ? t : "inherit",
195
+ overflowWrap: c ? "anywhere" : "inherit",
196
+ color: V && (S = D[i]) != null ? S : i,
197
+ textAlign: v,
198
+ textShadow: A
198
199
  })
199
- }), l);
200
- }, p = (e)=>{
200
+ }), h);
201
+ }, l = (e)=>{
201
202
  if (e.light) return "light";
202
203
  if (e.regular) return "regular";
203
204
  if (e.medium) return "medium";
204
- }, ie = (_param)=>{
205
- var { dataAttributes: e } = _param, t = _objectWithoutProperties(_param, [
206
- "dataAttributes"
205
+ }, s = (param)=>{
206
+ let { forceMobileSizes: e , mobileSize: i , mobileLineHeight: t , desktopSize: o , desktopLineHeight: g } = param;
207
+ return e ? {
208
+ size: i,
209
+ lineHeight: t
210
+ } : {
211
+ mobileSize: i,
212
+ mobileLineHeight: t,
213
+ desktopSize: o,
214
+ desktopLineHeight: g
215
+ };
216
+ }, ne = (_param)=>{
217
+ var { dataAttributes: e , forceMobileSizes: i } = _param, t = _objectWithoutProperties(_param, [
218
+ "dataAttributes",
219
+ "forceMobileSizes"
207
220
  ]);
208
- const { textPresets: i } = (0, _hooksJs.useTheme)();
209
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(n, _objectSpread({
221
+ const { textPresets: o } = (0, _hooksJs.useTheme)();
222
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(r, _objectSpread(_objectSpreadProps(_objectSpread({}, s({
223
+ forceMobileSizes: i,
210
224
  mobileSize: 48,
211
225
  mobileLineHeight: "56px",
212
226
  desktopSize: 64,
213
- desktopLineHeight: "72px",
214
- weight: i.text10.weight,
227
+ desktopLineHeight: "72px"
228
+ })), {
229
+ weight: o.text10.weight,
215
230
  dataAttributes: _objectSpread({
216
231
  "component-name": "Text10"
217
232
  }, e)
218
- }, t));
219
- }, oe = (_param)=>{
220
- var { dataAttributes: e } = _param, t = _objectWithoutProperties(_param, [
221
- "dataAttributes"
233
+ }), t));
234
+ }, re = (_param)=>{
235
+ var { dataAttributes: e , forceMobileSizes: i } = _param, t = _objectWithoutProperties(_param, [
236
+ "dataAttributes",
237
+ "forceMobileSizes"
222
238
  ]);
223
- const { textPresets: i } = (0, _hooksJs.useTheme)();
224
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(n, _objectSpread({
239
+ const { textPresets: o } = (0, _hooksJs.useTheme)();
240
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(r, _objectSpread(_objectSpreadProps(_objectSpread({}, s({
241
+ forceMobileSizes: i,
225
242
  mobileSize: 40,
226
243
  mobileLineHeight: "48px",
227
244
  desktopSize: 56,
228
- desktopLineHeight: "64px",
229
- weight: i.text9.weight,
245
+ desktopLineHeight: "64px"
246
+ })), {
247
+ weight: o.text9.weight,
230
248
  dataAttributes: _objectSpread({
231
249
  "component-name": "Text9"
232
250
  }, e)
233
- }, t));
234
- }, ne = (_param)=>{
235
- var { dataAttributes: e } = _param, t = _objectWithoutProperties(_param, [
236
- "dataAttributes"
251
+ }), t));
252
+ }, se = (_param)=>{
253
+ var { dataAttributes: e , forceMobileSizes: i } = _param, t = _objectWithoutProperties(_param, [
254
+ "dataAttributes",
255
+ "forceMobileSizes"
237
256
  ]);
238
- const { textPresets: i } = (0, _hooksJs.useTheme)();
239
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(n, _objectSpread({
257
+ const { textPresets: o } = (0, _hooksJs.useTheme)();
258
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(r, _objectSpread(_objectSpreadProps(_objectSpread({}, s({
259
+ forceMobileSizes: i,
240
260
  mobileSize: 32,
241
261
  mobileLineHeight: "40px",
242
262
  desktopSize: 48,
243
- desktopLineHeight: "56px",
244
- weight: i.text8.weight,
263
+ desktopLineHeight: "56px"
264
+ })), {
265
+ weight: o.text8.weight,
245
266
  dataAttributes: _objectSpread({
246
267
  "component-name": "Text8"
247
268
  }, e)
248
- }, t));
249
- }, re = (_param)=>{
250
- var { dataAttributes: e } = _param, t = _objectWithoutProperties(_param, [
251
- "dataAttributes"
269
+ }), t));
270
+ }, me = (_param)=>{
271
+ var { dataAttributes: e , forceMobileSizes: i } = _param, t = _objectWithoutProperties(_param, [
272
+ "dataAttributes",
273
+ "forceMobileSizes"
252
274
  ]);
253
- const { textPresets: i } = (0, _hooksJs.useTheme)();
254
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(n, _objectSpread({
275
+ const { textPresets: o } = (0, _hooksJs.useTheme)();
276
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(r, _objectSpread(_objectSpreadProps(_objectSpread({}, s({
277
+ forceMobileSizes: i,
255
278
  mobileSize: 28,
256
279
  mobileLineHeight: "32px",
257
280
  desktopSize: 40,
258
- desktopLineHeight: "48px",
259
- weight: i.text7.weight,
281
+ desktopLineHeight: "48px"
282
+ })), {
283
+ weight: o.text7.weight,
260
284
  dataAttributes: _objectSpread({
261
285
  "component-name": "Text7"
262
286
  }, e)
263
- }, t));
264
- }, se = (_param)=>{
265
- var { dataAttributes: e } = _param, t = _objectWithoutProperties(_param, [
266
- "dataAttributes"
287
+ }), t));
288
+ }, xe = (_param)=>{
289
+ var { dataAttributes: e , forceMobileSizes: i } = _param, t = _objectWithoutProperties(_param, [
290
+ "dataAttributes",
291
+ "forceMobileSizes"
267
292
  ]);
268
- const { textPresets: i } = (0, _hooksJs.useTheme)();
269
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(n, _objectSpread({
293
+ const { textPresets: o } = (0, _hooksJs.useTheme)();
294
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(r, _objectSpread(_objectSpreadProps(_objectSpread({}, s({
295
+ forceMobileSizes: i,
270
296
  mobileSize: 24,
271
297
  mobileLineHeight: "32px",
272
298
  desktopSize: 32,
273
- desktopLineHeight: "40px",
274
- weight: i.text6.weight,
299
+ desktopLineHeight: "40px"
300
+ })), {
301
+ weight: o.text6.weight,
275
302
  dataAttributes: _objectSpread({
276
303
  "component-name": "Text6"
277
304
  }, e)
278
- }, t));
279
- }, me = (_param)=>{
280
- var { dataAttributes: e } = _param, t = _objectWithoutProperties(_param, [
281
- "dataAttributes"
305
+ }), t));
306
+ }, ae = (_param)=>{
307
+ var { dataAttributes: e , forceMobileSizes: i } = _param, t = _objectWithoutProperties(_param, [
308
+ "dataAttributes",
309
+ "forceMobileSizes"
282
310
  ]);
283
- const { textPresets: i } = (0, _hooksJs.useTheme)();
284
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(n, _objectSpread({
311
+ const { textPresets: o } = (0, _hooksJs.useTheme)();
312
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(r, _objectSpread(_objectSpreadProps(_objectSpread({}, s({
313
+ forceMobileSizes: i,
285
314
  mobileSize: 20,
286
315
  mobileLineHeight: "24px",
287
316
  desktopSize: 28,
288
- desktopLineHeight: "32px",
289
- weight: i.text5.weight,
317
+ desktopLineHeight: "32px"
318
+ })), {
319
+ weight: o.text5.weight,
290
320
  dataAttributes: _objectSpread({
291
321
  "component-name": "Text5"
292
322
  }, e)
293
- }, t));
294
- }, ae = (_param)=>/* @__PURE__ */ {
295
- var { dataAttributes: e } = _param, t = _objectWithoutProperties(_param, [
296
- "dataAttributes"
323
+ }), t));
324
+ }, pe = (_param)=>/* @__PURE__ */ {
325
+ var { dataAttributes: e , forceMobileSizes: i } = _param, t = _objectWithoutProperties(_param, [
326
+ "dataAttributes",
327
+ "forceMobileSizes"
297
328
  ]);
298
- return (0, _jsxRuntimeJs.jsx)(n, _objectSpread({
329
+ return (0, _jsxRuntimeJs.jsx)(r, _objectSpread(_objectSpreadProps(_objectSpread({}, s({
330
+ forceMobileSizes: i,
299
331
  mobileSize: 18,
300
332
  mobileLineHeight: "24px",
301
333
  desktopSize: 20,
302
- desktopLineHeight: "28px",
303
- weight: p(t),
334
+ desktopLineHeight: "28px"
335
+ })), {
336
+ weight: l(t),
304
337
  dataAttributes: _objectSpread({
305
338
  "component-name": "Text4"
306
339
  }, e)
307
- }, t));
308
- }, xe = (_param)=>/* @__PURE__ */ {
309
- var { dataAttributes: e } = _param, t = _objectWithoutProperties(_param, [
310
- "dataAttributes"
340
+ }), t));
341
+ }, le = (_param)=>/* @__PURE__ */ {
342
+ var { dataAttributes: e , forceMobileSizes: i } = _param, t = _objectWithoutProperties(_param, [
343
+ "dataAttributes",
344
+ "forceMobileSizes"
311
345
  ]);
312
- return (0, _jsxRuntimeJs.jsx)(n, _objectSpread({
346
+ return (0, _jsxRuntimeJs.jsx)(r, _objectSpread(_objectSpreadProps(_objectSpread({}, s({
347
+ forceMobileSizes: i,
313
348
  mobileSize: 16,
349
+ mobileLineHeight: "24px",
314
350
  desktopSize: 18,
315
- lineHeight: "24px",
316
- weight: p(t),
351
+ desktopLineHeight: "24px"
352
+ })), {
353
+ weight: l(t),
317
354
  dataAttributes: _objectSpread({
318
355
  "component-name": "Text3"
319
356
  }, e)
320
- }, t));
321
- }, pe = (_param)=>/* @__PURE__ */ {
322
- var { dataAttributes: e } = _param, t = _objectWithoutProperties(_param, [
323
- "dataAttributes"
357
+ }), t));
358
+ }, ge = (_param)=>/* @__PURE__ */ {
359
+ var { dataAttributes: e , forceMobileSizes: i } = _param, t = _objectWithoutProperties(_param, [
360
+ "dataAttributes",
361
+ "forceMobileSizes"
324
362
  ]);
325
- return (0, _jsxRuntimeJs.jsx)(n, _objectSpread({
363
+ return (0, _jsxRuntimeJs.jsx)(r, _objectSpread(_objectSpreadProps(_objectSpread({}, s({
364
+ forceMobileSizes: i,
326
365
  mobileSize: 14,
327
366
  mobileLineHeight: "20px",
328
367
  desktopSize: 16,
329
- desktopLineHeight: "24px",
330
- weight: p(t),
368
+ desktopLineHeight: "24px"
369
+ })), {
370
+ weight: l(t),
331
371
  dataAttributes: _objectSpread({
332
372
  "component-name": "Text2"
333
373
  }, e)
334
- }, t));
335
- }, le = (_param)=>/* @__PURE__ */ {
336
- var { dataAttributes: e } = _param, t = _objectWithoutProperties(_param, [
337
- "dataAttributes"
374
+ }), t));
375
+ }, he = (_param)=>/* @__PURE__ */ {
376
+ var { dataAttributes: e , forceMobileSizes: i } = _param, t = _objectWithoutProperties(_param, [
377
+ "dataAttributes",
378
+ "forceMobileSizes"
338
379
  ]);
339
- return (0, _jsxRuntimeJs.jsx)(n, _objectSpread({
380
+ return (0, _jsxRuntimeJs.jsx)(r, _objectSpread(_objectSpreadProps(_objectSpread({}, s({
381
+ forceMobileSizes: i,
340
382
  mobileSize: 12,
341
383
  mobileLineHeight: "16px",
342
384
  desktopSize: 14,
343
- desktopLineHeight: "20px",
344
- weight: p(t),
385
+ desktopLineHeight: "20px"
386
+ })), {
387
+ weight: l(t),
345
388
  dataAttributes: _objectSpread({
346
389
  "component-name": "Text1"
347
390
  }, e)
348
- }, t));
391
+ }), t));
349
392
  };