@telefonica/mistica 13.6.1 → 14.1.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.
@@ -9,12 +9,12 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- FunnelNavigationBar: ()=>Y1,
13
- MainNavigationBar: ()=>Q1,
14
- NavigationBar: ()=>X1,
15
- NavigationBarAction: ()=>e2,
16
- NavigationBarActionGroup: ()=>z1,
17
- NavigationBarLogo: ()=>G
12
+ FunnelNavigationBar: ()=>z1,
13
+ MainNavigationBar: ()=>X1,
14
+ NavigationBar: ()=>Y1,
15
+ NavigationBarAction: ()=>r2,
16
+ NavigationBarActionGroup: ()=>e2,
17
+ NavigationBarLogo: ()=>P
18
18
  });
19
19
  const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
20
20
  const _reactTransitionGroup = require("react-transition-group");
@@ -164,7 +164,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
164
164
  }
165
165
  return target;
166
166
  }
167
- const g1 = (param)=>{
167
+ const H1 = (param)=>{
168
168
  let { size: r } = param;
169
169
  const { isDarkMode: t } = (0, _hooksJs.useTheme)(), n = (0, _themeVariantContextJs.useIsInverseVariant)() && !t ? _skinContractCssMisticaJs.vars.colors.inverse : _skinContractCssMisticaJs.vars.colors.brand;
170
170
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("svg", {
@@ -177,7 +177,7 @@ const g1 = (param)=>{
177
177
  d: "M5.75989 5.73747C4.83318 5.7524 3.12261 6.21673 2.34128 9.45937C2.00085 10.8723 1.86931 12.3449 2.16077 14.0979C2.42943 15.7147 2.90545 17.1101 3.22629 17.8792C3.33689 18.1441 3.50812 18.4206 3.6405 18.5906C4.02129 19.0797 4.65503 19.0484 4.92132 18.9151C5.2116 18.7699 5.54527 18.4194 5.42453 17.6187C5.36611 17.2319 5.19775 16.666 5.10302 16.3515C4.81224 15.3863 4.42521 14.2216 4.39143 13.392C4.34635 12.2823 4.77695 12.1369 5.06283 12.0731C5.54375 11.9655 5.94682 12.5021 6.3298 13.1746C6.78691 13.9771 7.57026 15.3991 8.20924 16.4853C8.78607 17.4658 9.85057 18.5156 11.5601 18.4436C13.303 18.3703 14.5877 17.6946 15.2494 15.5671C15.7447 13.9756 16.0823 12.7863 16.6255 11.5683C17.2501 10.1677 18.0833 9.41801 18.7849 9.64692C19.4364 9.85935 19.599 10.5064 19.6067 11.4576C19.6137 12.2989 19.5179 13.2264 19.4435 13.9078C19.4164 14.1551 19.3675 14.6525 19.3874 14.9286C19.4267 15.4715 19.6581 16.0138 20.2597 16.1006C20.9006 16.1929 21.4148 15.6725 21.6201 15.0434C21.7011 14.7955 21.7702 14.4161 21.8075 14.1468C21.9958 12.7873 22.0446 11.8735 21.9598 10.4824C21.8604 8.85587 21.5471 7.3726 21.0007 6.08889C20.4779 4.8613 19.6382 4.07454 18.5612 4.00504C17.369 3.92817 16.0009 4.73192 15.2832 6.29138C14.6216 7.72883 14.0924 9.20455 13.7714 9.95768C13.4458 10.7214 12.9673 11.1921 12.2315 11.2709C11.332 11.367 10.5569 10.7034 9.98921 9.75726C9.49428 8.93257 8.51336 7.3623 7.98853 6.83465C7.49546 6.33891 6.9323 5.71859 5.75989 5.73747Z"
178
178
  })
179
179
  });
180
- }, H1 = (param)=>{
180
+ }, f1 = (param)=>{
181
181
  let { size: r } = param;
182
182
  const { isDarkMode: t } = (0, _hooksJs.useTheme)(), n = (0, _themeVariantContextJs.useIsInverseVariant)() && !t ? _skinContractCssMisticaJs.vars.colors.inverse : _skinContractCssMisticaJs.vars.colors.brand;
183
183
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("svg", {
@@ -206,7 +206,7 @@ const g1 = (param)=>{
206
206
  })
207
207
  ]
208
208
  });
209
- }, f1 = (param)=>{
209
+ }, V1 = (param)=>{
210
210
  let { size: r } = param;
211
211
  const { isDarkMode: t } = (0, _hooksJs.useTheme)(), n = (0, _themeVariantContextJs.useIsInverseVariant)() && !t ? _skinContractCssMisticaJs.vars.colors.inverse : _skinContractCssMisticaJs.vars.colors.brand;
212
212
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("svg", {
@@ -219,7 +219,7 @@ const g1 = (param)=>{
219
219
  d: "M21.5488 16.0335C21.8424 16.1065 22.1266 16.2415 22.3388 16.4558C22.5183 16.6276 22.6411 16.8499 22.7127 17.0838C22.7977 17.3731 22.8193 17.6803 22.7802 17.9787C22.7429 18.2479 22.6501 18.5075 22.5284 18.7511C22.2997 19.1992 21.9805 19.5965 21.6394 19.9683C21.2723 20.3662 20.8766 20.738 20.4814 21.1094C21.2777 21.1069 22.074 21.1092 22.8703 21.1081C22.9135 21.1077 22.9576 21.1055 23 21.1167V22.0552C22.9759 22.0582 22.952 22.0614 22.9283 22.0624L18.8838 22.0622V21.0511C18.9759 20.9616 19.0743 20.8788 19.1687 20.7915C19.5786 20.4276 19.9825 20.0567 20.3632 19.6636C20.7294 19.2771 21.0861 18.873 21.3411 18.4066C21.4566 18.1876 21.5534 17.9491 21.5517 17.6993C21.5505 17.5207 21.4843 17.341 21.3574 17.2104C21.1927 17.0367 20.9529 16.9489 20.716 16.9204C20.3962 16.887 20.0733 16.9517 19.7757 17.0638C19.546 17.1486 19.3328 17.2686 19.1242 17.3931C19.0916 17.0571 19.0577 16.7212 19.0264 16.385C19.5388 16.1368 20.1029 15.987 20.6754 15.9608C20.9677 15.9438 21.2639 15.965 21.5488 16.0335ZM14.8405 5.31598C15.4058 5.52592 15.9429 5.8091 16.4281 6.16147C17.2361 6.74433 17.8939 7.51825 18.3477 8.39085C18.7702 9.19553 19.0213 10.0802 19.1223 10.9769C19.1704 11.4267 19.1906 11.8802 19.1648 12.332C19.1295 13.0499 18.99 13.7632 18.7481 14.4425C18.3674 15.5124 17.7227 16.4967 16.8652 17.2645C16.0449 18.0046 15.0307 18.537 13.947 18.8055C13.1523 19.0037 12.3237 19.0655 11.5063 19.0057C10.6758 18.9451 9.85411 18.7488 9.09547 18.4127C8.21888 18.0263 7.43007 17.4539 6.79756 16.7483C6.02182 15.8873 5.48168 14.8334 5.21175 13.7205C5.07973 13.1805 5.01279 12.6264 5 12.0718V11.7823C5.01178 11.3188 5.05344 10.8555 5.13963 10.3991C5.34506 9.29686 5.79973 8.23067 6.51039 7.34507C7.05786 6.65781 7.75545 6.08488 8.54283 5.67338C9.55445 5.14127 10.703 4.87849 11.8491 4.8504C12.8638 4.81979 13.89 4.96278 14.8405 5.31598ZM11.7686 6.88536C11.3519 6.91848 10.939 7.01031 10.5534 7.16896C10.1453 7.33515 9.76806 7.57136 9.43995 7.86C9.02852 8.21991 8.69266 8.65754 8.43365 9.13235C8.03931 9.85652 7.81866 10.665 7.75717 11.4807C7.72184 11.96 7.74281 12.4429 7.81421 12.9184C7.90715 13.527 8.08442 14.1256 8.36283 14.679C8.59899 15.1493 8.90986 15.5869 9.2996 15.9492C9.7116 16.3365 10.2151 16.6312 10.7604 16.8024C11.2601 16.9599 11.7902 17.0181 12.3138 16.9961C12.8009 16.9736 13.287 16.8782 13.7364 16.6911C14.4144 16.4136 14.9922 15.9302 15.4118 15.3457C15.9534 14.5939 16.259 13.6989 16.3791 12.7929C16.5377 11.6104 16.3647 10.3777 15.831 9.29994C15.592 8.82345 15.2831 8.37604 14.8943 8.00284C14.4766 7.59023 13.9621 7.26917 13.3989 7.08034C12.8773 6.90381 12.3181 6.84622 11.7686 6.88536Z"
220
220
  })
221
221
  });
222
- }, V1 = (param)=>{
222
+ }, b1 = (param)=>{
223
223
  let { size: r } = param;
224
224
  const { isDarkMode: t } = (0, _hooksJs.useTheme)(), n = (0, _themeVariantContextJs.useIsInverseVariant)() && !t ? _skinContractCssMisticaJs.vars.colors.inverse : _skinContractCssMisticaJs.vars.colors.brand;
225
225
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("svg", {
@@ -281,7 +281,7 @@ const g1 = (param)=>{
281
281
  })
282
282
  ]
283
283
  });
284
- }, b1 = (param)=>{
284
+ }, Z1 = (param)=>{
285
285
  let { size: r } = param;
286
286
  const { isDarkMode: t } = (0, _hooksJs.useTheme)(), n = (0, _themeVariantContextJs.useIsInverseVariant)() && !t ? _skinContractCssMisticaJs.vars.colors.inverse : _skinContractCssMisticaJs.vars.colors.brand;
287
287
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("svg", {
@@ -308,35 +308,35 @@ const g1 = (param)=>{
308
308
  })
309
309
  ]
310
310
  });
311
- }, G = (param)=>{
311
+ }, P = (param)=>{
312
312
  let { size: r } = param;
313
313
  const { skinName: t } = (0, _hooksJs.useTheme)(), { isTabletOrSmaller: a } = (0, _hooksJs.useScreenSize)();
314
314
  switch(r = r != null ? r : a ? 40 : 48, t){
315
315
  case "Movistar":
316
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(g1, {
316
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(H1, {
317
317
  size: r
318
318
  });
319
319
  case "Vivo":
320
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(H1, {
320
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(f1, {
321
321
  size: r
322
322
  });
323
323
  case "O2":
324
324
  case "O2-classic":
325
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(f1, {
325
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(V1, {
326
326
  size: r
327
327
  });
328
328
  case "Telefonica":
329
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(V1, {
329
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(b1, {
330
330
  size: r
331
331
  });
332
332
  case "Blau":
333
- return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(b1, {
333
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(Z1, {
334
334
  size: r
335
335
  });
336
336
  default:
337
337
  return null;
338
338
  }
339
- }, Z1 = (param)=>/* @__PURE__ */ {
339
+ }, N1 = (param)=>/* @__PURE__ */ {
340
340
  let { isOpen: r } = param;
341
341
  return (0, _jsxRuntimeJs.jsxs)("div", {
342
342
  className: _navigationBarCssMisticaJs.burgerIconContainer,
@@ -353,7 +353,7 @@ const g1 = (param)=>{
353
353
  })
354
354
  ]
355
355
  });
356
- }, N1 = 300, V = (param)=>{
356
+ }, L1 = 300, V = (param)=>{
357
357
  let { children: r , topFixed: t , withBorder: a , isMenuOpen: n , isInverse: i , dataAttributes: d } = param;
358
358
  const { isDarkMode: u } = (0, _hooksJs.useTheme)();
359
359
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("header", _objectSpreadProps(_objectSpread({
@@ -370,19 +370,19 @@ const g1 = (param)=>{
370
370
  }, (0, _domJs.getPrefixedDataAttributes)(d)), {
371
371
  children: r
372
372
  }));
373
- }, Q1 = (param)=>{
373
+ }, X1 = (param)=>{
374
374
  let { sections: r , selectedIndex: t , right: a , logo: n , isInverse: i = !1 , topFixed: d = !0 } = param;
375
- const { texts: u , isDarkMode: M } = (0, _hooksJs.useTheme)(), [C, B] = _react.useState(!1), [I, v] = _react.useState("closed"), x = (0, _hooksJs.useAriaId)(), P = M ? 1 : 0.2, { isTabletOrSmaller: _ } = (0, _hooksJs.useScreenSize)(), w = (0, _modalContextProviderJs.useSetModalState)();
376
- if (n = n != null ? n : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(G, {}), _) {
375
+ const { texts: u , isDarkMode: M } = (0, _hooksJs.useTheme)(), [C, B] = _react.useState(!1), [I, g] = _react.useState("closed"), x = (0, _hooksJs.useAriaId)(), _ = M ? 1 : 0.2, { isTabletOrSmaller: U } = (0, _hooksJs.useScreenSize)(), w = (0, _modalContextProviderJs.useSetModalState)();
376
+ if (n = n != null ? n : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(P, {}), U) {
377
377
  const b = ()=>{
378
378
  B(!0), w({
379
379
  isModalOpen: !0
380
380
  });
381
- }, g = ()=>{
381
+ }, v = ()=>{
382
382
  B(!1), w({
383
383
  isModalOpen: !1
384
384
  });
385
- }, p = I !== "open";
385
+ }, p = I !== "open", A = r.length > 1;
386
386
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_jsxRuntimeJs.Fragment, {
387
387
  children: [
388
388
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_focusTrapJs.default, {
@@ -408,13 +408,13 @@ const g1 = (param)=>{
408
408
  space: 24,
409
409
  alignItems: "center",
410
410
  children: [
411
- /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_iconButtonJs.default, {
411
+ A && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_iconButtonJs.default, {
412
412
  "aria-live": "polite",
413
413
  "aria-label": C ? u.closeNavigationMenu : u.openNavigationMenu,
414
414
  "aria-expanded": C,
415
415
  "aria-controls": x,
416
- onPress: C ? g : b,
417
- children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(Z1, {
416
+ onPress: C ? v : b,
417
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(N1, {
418
418
  isOpen: C
419
419
  })
420
420
  }),
@@ -435,25 +435,25 @@ const g1 = (param)=>{
435
435
  })
436
436
  ]
437
437
  }),
438
- /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_portalJs.Portal, {
438
+ A && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_portalJs.Portal, {
439
439
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_focusTrapJs.default, {
440
440
  disabled: p,
441
441
  group: "burger-menu-lock",
442
442
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_reactTransitionGroup.CSSTransition, {
443
443
  onEntering: ()=>{
444
- v("opening");
444
+ g("opening");
445
445
  },
446
446
  onEntered: ()=>{
447
- v("open");
447
+ g("open");
448
448
  },
449
449
  onExiting: ()=>{
450
- v("closing");
450
+ g("closing");
451
451
  },
452
452
  onExited: ()=>{
453
- v("closed");
453
+ g("closed");
454
454
  },
455
455
  in: C,
456
- timeout: N1,
456
+ timeout: L1,
457
457
  classNames: {
458
458
  enter: _navigationBarCssMisticaJs.burgerMenuEnter,
459
459
  enterActive: _navigationBarCssMisticaJs.burgerMenuEnterActive,
@@ -464,16 +464,16 @@ const g1 = (param)=>{
464
464
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("nav", {
465
465
  className: _navigationBarCssMisticaJs.burgerMenu,
466
466
  style: {
467
- boxShadow: I !== "closed" ? `6px 0 4px -4px rgba(0, 0, 0, ${P})` : "none"
467
+ boxShadow: I !== "closed" ? `6px 0 4px -4px rgba(0, 0, 0, ${_})` : "none"
468
468
  },
469
469
  id: x,
470
470
  onClick: ()=>{
471
- g();
471
+ v();
472
472
  },
473
473
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_responsiveLayoutJs.default, {
474
474
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_negativeBoxJs.default, {
475
475
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_listJs.RowList, {
476
- children: r.map((U, j)=>/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_listJs.Row, _objectSpread({}, U), j))
476
+ children: r.map((j, F)=>/* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_listJs.Row, _objectSpread({}, j), F))
477
477
  })
478
478
  })
479
479
  })
@@ -512,10 +512,10 @@ const g1 = (param)=>{
512
512
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_inlineJs.default, {
513
513
  space: 32,
514
514
  children: r.map((_param, p)=>/* @__PURE__ */ /*#__PURE__*/ {
515
- var { title: b } = _param, g = _objectWithoutProperties(_param, [
515
+ var { title: b } = _param, v = _objectWithoutProperties(_param, [
516
516
  "title"
517
517
  ]);
518
- return /*#__PURE__*/ (0, _react.createElement)(_touchableJs.BaseTouchable, _objectSpreadProps(_objectSpread({}, g), {
518
+ return /*#__PURE__*/ (0, _react.createElement)(_touchableJs.BaseTouchable, _objectSpreadProps(_objectSpread({}, v), {
519
519
  key: p,
520
520
  className: (0, _classnames.default)(_navigationBarCssMisticaJs.section, {
521
521
  [_navigationBarCssMisticaJs.selectedSectionVariantes[i ? "inverse" : "default"]]: p === t
@@ -543,7 +543,7 @@ const g1 = (param)=>{
543
543
  })
544
544
  ]
545
545
  });
546
- }, X1 = (param)=>{
546
+ }, Y1 = (param)=>{
547
547
  let { onBack: r , title: t , right: a , isInverse: n = !1 , topFixed: i = !0 , paddingX: d = 0 , withBorder: u = !0 } = param;
548
548
  const { texts: M } = (0, _hooksJs.useTheme)(), C = /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_inlineJs.default, {
549
549
  space: "between",
@@ -601,7 +601,7 @@ const g1 = (param)=>{
601
601
  })
602
602
  ]
603
603
  });
604
- }, Y1 = (param)=>/* @__PURE__ */ {
604
+ }, z1 = (param)=>/* @__PURE__ */ {
605
605
  let { logo: r , right: t , isInverse: a = !1 , topFixed: n = !0 } = param;
606
606
  return (0, _jsxRuntimeJs.jsxs)(_themeVariantContextJs.ThemeVariant, {
607
607
  isInverse: a,
@@ -620,7 +620,7 @@ const g1 = (param)=>{
620
620
  space: "between",
621
621
  alignItems: "center",
622
622
  children: [
623
- r != null ? r : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(G, {}),
623
+ r != null ? r : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(P, {}),
624
624
  t
625
625
  ]
626
626
  })
@@ -632,7 +632,7 @@ const g1 = (param)=>{
632
632
  })
633
633
  ]
634
634
  });
635
- }, z1 = (param)=>/* @__PURE__ */ {
635
+ }, e2 = (param)=>/* @__PURE__ */ {
636
636
  let { children: r } = param;
637
637
  return (0, _jsxRuntimeJs.jsx)("div", {
638
638
  className: _navigationBarCssMisticaJs.lineHeightFix,
@@ -643,7 +643,7 @@ const g1 = (param)=>{
643
643
  children: r
644
644
  })
645
645
  });
646
- }, e2 = (_param)=>{
646
+ }, r2 = (_param)=>{
647
647
  var { children: r } = _param, t = _objectWithoutProperties(_param, [
648
648
  "children"
649
649
  ]);
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "PACKAGE_VERSION", {
6
6
  enumerable: true,
7
7
  get: ()=>o
8
8
  });
9
- const o = "13.6.1";
9
+ const o = "14.1.0";
@@ -62,7 +62,7 @@ const e = {
62
62
  backgroundBrandSecondary: e.blauBluePrimary,
63
63
  backgroundOverlay: (0, _colorJs.applyAlpha)(e.blauBlueSecondary, 0.75),
64
64
  backgroundSkeleton: e.grey2,
65
- backgroundSkeletonInverse: (0, _colorJs.applyAlpha)(e.white, 0.2),
65
+ backgroundSkeletonInverse: (0, _colorJs.applyAlpha)(e.white, 0.3),
66
66
  navigationBarBackground: e.blauBluePrimary,
67
67
  backgroundAlternative: e.blauBluePrimary20,
68
68
  backgroundFeedbackBottom: e.blauBluePrimary,
@@ -123,7 +123,7 @@ const e = {
123
123
  textPrimary: e.grey6,
124
124
  textPrimaryInverse: e.white,
125
125
  textSecondary: e.grey5,
126
- textSecondaryInverse: e.white,
126
+ textSecondaryInverse: e.blauBluePrimary20,
127
127
  error: e.blauRed,
128
128
  success: e.blauGreen,
129
129
  warning: e.blauYellow,
@@ -0,0 +1,45 @@
1
+ import type { GetKnownSkin } from './types';
2
+ export declare const palette: {
3
+ readonly movistarBlue: "#019DF4";
4
+ readonly movistarBlue10: "#E6F5FD";
5
+ readonly movistarBlue20: "#B3E1FB";
6
+ readonly movistarBlue30: "#80CEF9";
7
+ readonly movistarBlue40: "#4DBAF7";
8
+ readonly movistarBlue55: "#008EDD";
9
+ readonly movistarGreen: "#5CB615";
10
+ readonly movistarGreen10: "#EFF8E8";
11
+ readonly movistarGreen30: "#ADDA8A";
12
+ readonly movistarGreen40: "#8DCC5B";
13
+ readonly movistarGreen60: "#499110";
14
+ readonly movistarGreen70: "#407F0F";
15
+ readonly pepper: "#FF374A";
16
+ readonly pepper10: "#FFEBED";
17
+ readonly pepper20: "#FFC3C8";
18
+ readonly pepper40: "#FF7380";
19
+ readonly pepper55: "#D73241";
20
+ readonly pepper70: "#B22634";
21
+ readonly egg: "#F28D15";
22
+ readonly egg10: "#FEF4E8";
23
+ readonly egg40: "#F6AF5B";
24
+ readonly egg80: "#6D3F09";
25
+ readonly pink: "#E63780";
26
+ readonly purple: "#A13EA1";
27
+ readonly purple10: "#F6ECF6";
28
+ readonly purple40: "#BD78BD";
29
+ readonly purple70: "#712B71";
30
+ readonly grey1: "#F6F6F6";
31
+ readonly grey2: "#EEEEEE";
32
+ readonly grey3: "#DDDDDD";
33
+ readonly grey4: "#999999";
34
+ readonly grey5: "#86888C";
35
+ readonly grey6: "#313235";
36
+ readonly white: "#FFFFFF";
37
+ readonly movistarProminentBlue: "#0B2739";
38
+ readonly movistarProminentBlueDark: "#081F2D";
39
+ readonly movistarProminentBlueLight20: "#CED3D7";
40
+ readonly movistarProminentBlueLight50: "#85939C";
41
+ readonly movistarProminentBlueLight70: "#546874";
42
+ readonly darkModeBlack: "#191919";
43
+ readonly darkModeGrey: "#242424";
44
+ };
45
+ export declare const getMovistarLegacySkin: GetKnownSkin;
@@ -0,0 +1,260 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ getMovistarLegacySkin: ()=>d,
13
+ palette: ()=>e
14
+ });
15
+ const _colorJs = require("../utils/color.js");
16
+ const _constantsJs = require("./constants.js");
17
+ const e = {
18
+ movistarBlue: "#019DF4",
19
+ movistarBlue10: "#E6F5FD",
20
+ movistarBlue20: "#B3E1FB",
21
+ movistarBlue30: "#80CEF9",
22
+ movistarBlue40: "#4DBAF7",
23
+ movistarBlue55: "#008EDD",
24
+ movistarGreen: "#5CB615",
25
+ movistarGreen10: "#EFF8E8",
26
+ movistarGreen30: "#ADDA8A",
27
+ movistarGreen40: "#8DCC5B",
28
+ movistarGreen60: "#499110",
29
+ movistarGreen70: "#407F0F",
30
+ pepper: "#FF374A",
31
+ pepper10: "#FFEBED",
32
+ pepper20: "#FFC3C8",
33
+ pepper40: "#FF7380",
34
+ pepper55: "#D73241",
35
+ pepper70: "#B22634",
36
+ egg: "#F28D15",
37
+ egg10: "#FEF4E8",
38
+ egg40: "#F6AF5B",
39
+ egg80: "#6D3F09",
40
+ pink: "#E63780",
41
+ purple: "#A13EA1",
42
+ purple10: "#F6ECF6",
43
+ purple40: "#BD78BD",
44
+ purple70: "#712B71",
45
+ grey1: "#F6F6F6",
46
+ grey2: "#EEEEEE",
47
+ grey3: "#DDDDDD",
48
+ grey4: "#999999",
49
+ grey5: "#86888C",
50
+ grey6: "#313235",
51
+ white: "#FFFFFF",
52
+ movistarProminentBlue: "#0B2739",
53
+ movistarProminentBlueDark: "#081F2D",
54
+ movistarProminentBlueLight20: "#CED3D7",
55
+ movistarProminentBlueLight50: "#85939C",
56
+ movistarProminentBlueLight70: "#546874",
57
+ darkModeBlack: "#191919",
58
+ darkModeGrey: "#242424"
59
+ }, d = (o)=>{
60
+ const t = {
61
+ name: _constantsJs.MOVISTAR_SKIN,
62
+ colors: {
63
+ appBarBackground: e.white,
64
+ background: e.white,
65
+ backgroundContainer: e.white,
66
+ backgroundBrand: e.movistarBlue,
67
+ backgroundBrandSecondary: e.movistarBlue,
68
+ backgroundOverlay: (0, _colorJs.applyAlpha)(e.grey6, 0.6),
69
+ backgroundSkeleton: e.grey2,
70
+ backgroundSkeletonInverse: e.movistarBlue55,
71
+ navigationBarBackground: e.movistarBlue,
72
+ backgroundAlternative: e.grey1,
73
+ backgroundFeedbackBottom: e.movistarBlue,
74
+ skeletonWave: e.grey2,
75
+ borderLow: e.grey1,
76
+ border: e.grey3,
77
+ borderHigh: e.grey5,
78
+ borderSelected: e.movistarBlue,
79
+ buttonDangerBackground: e.pepper,
80
+ buttonDangerBackgroundSelected: e.pepper55,
81
+ buttonDangerBackgroundHover: e.pepper55,
82
+ buttonLinkBackgroundSelected: e.movistarBlue10,
83
+ buttonLinkBackgroundInverseSelected: (0, _colorJs.applyAlpha)(e.white, 0.2),
84
+ buttonPrimaryBackground: e.movistarBlue,
85
+ buttonPrimaryBackgroundInverse: e.white,
86
+ buttonPrimaryBackgroundSelected: e.movistarBlue55,
87
+ buttonPrimaryBackgroundHover: e.movistarBlue55,
88
+ buttonPrimaryBackgroundInverseSelected: e.movistarBlue30,
89
+ buttonSecondaryBorder: e.movistarBlue,
90
+ buttonSecondaryBorderSelected: e.movistarBlue55,
91
+ buttonSecondaryBorderInverse: e.white,
92
+ buttonSecondaryBorderInverseSelected: e.white,
93
+ buttonSecondaryBackgroundHover: e.movistarBlue10,
94
+ buttonSecondaryBackgroundSelected: e.movistarBlue10,
95
+ buttonSecondaryBackgroundInverseHover: (0, _colorJs.applyAlpha)(e.white, 0.2),
96
+ buttonSecondaryBackgroundInverseSelected: (0, _colorJs.applyAlpha)(e.white, 0.2),
97
+ textButtonPrimary: e.white,
98
+ textButtonPrimaryInverse: e.movistarBlue,
99
+ textButtonPrimaryInverseSelected: e.movistarBlue,
100
+ textButtonSecondary: e.movistarBlue,
101
+ textButtonSecondarySelected: e.movistarBlue55,
102
+ textButtonSecondaryInverse: e.white,
103
+ textButtonSecondaryInverseSelected: e.white,
104
+ textLink: e.movistarBlue,
105
+ textLinkInverse: e.white,
106
+ textLinkDanger: e.pepper,
107
+ textLinkSnackbar: e.movistarBlue30,
108
+ control: e.grey3,
109
+ controlActivated: e.movistarBlue,
110
+ controlError: e.pepper,
111
+ loadingBar: e.movistarBlue30,
112
+ loadingBarBackground: e.movistarBlue55,
113
+ toggleAndroidInactive: e.grey2,
114
+ toggleAndroidBackgroundActive: e.movistarBlue20,
115
+ iosControlKnob: e.white,
116
+ divider: e.grey2,
117
+ dividerInverse: e.movistarBlue55,
118
+ navigationBarDivider: e.movistarBlue,
119
+ badge: e.pepper55,
120
+ feedbackErrorBackground: e.pepper,
121
+ feedbackInfoBackground: e.grey6,
122
+ brand: e.movistarBlue,
123
+ brandHigh: e.movistarBlue55,
124
+ inverse: e.white,
125
+ neutralHigh: e.grey6,
126
+ neutralMedium: e.grey5,
127
+ neutralLow: e.grey1,
128
+ promo: e.purple,
129
+ highlight: e.pink,
130
+ textPrimary: e.grey6,
131
+ textPrimaryInverse: e.white,
132
+ textSecondary: e.grey5,
133
+ textSecondaryInverse: e.white,
134
+ error: e.pepper,
135
+ success: e.movistarGreen,
136
+ warning: e.egg,
137
+ textNavigationBarPrimary: e.white,
138
+ textNavigationBarSecondary: e.movistarBlue20,
139
+ textNavigationSearchBarHint: e.movistarBlue20,
140
+ textNavigationSearchBarText: e.white,
141
+ textAppBar: e.grey4,
142
+ textAppBarSelected: e.movistarBlue,
143
+ successLow: e.movistarGreen10,
144
+ warningLow: e.egg10,
145
+ errorLow: e.pepper10,
146
+ promoLow: e.purple10,
147
+ brandLow: e.movistarBlue10,
148
+ successHigh: e.movistarGreen70,
149
+ warningHigh: e.egg80,
150
+ errorHigh: e.pepper70,
151
+ promoHigh: e.purple70,
152
+ successHighInverse: e.movistarGreen70,
153
+ warningHighInverse: e.egg80,
154
+ errorHighInverse: e.pepper70,
155
+ promoHighInverse: e.purple70,
156
+ neutralMediumInverse: e.grey5
157
+ },
158
+ darkModeColors: {
159
+ brand: e.movistarBlue,
160
+ appBarBackground: e.darkModeGrey,
161
+ background: e.darkModeBlack,
162
+ backgroundContainer: e.darkModeGrey,
163
+ backgroundBrand: e.darkModeBlack,
164
+ backgroundBrandSecondary: e.darkModeBlack,
165
+ backgroundOverlay: (0, _colorJs.applyAlpha)(e.darkModeGrey, 0.8),
166
+ backgroundSkeleton: e.grey6,
167
+ backgroundSkeletonInverse: e.grey6,
168
+ navigationBarBackground: e.darkModeBlack,
169
+ backgroundAlternative: e.darkModeGrey,
170
+ backgroundFeedbackBottom: e.darkModeBlack,
171
+ skeletonWave: e.grey5,
172
+ borderLow: e.darkModeBlack,
173
+ border: e.darkModeGrey,
174
+ buttonLinkBackgroundSelected: (0, _colorJs.applyAlpha)(e.white, 0.05),
175
+ buttonLinkBackgroundInverseSelected: (0, _colorJs.applyAlpha)(e.white, 0.05),
176
+ buttonPrimaryBackground: e.movistarBlue,
177
+ buttonPrimaryBackgroundInverse: e.movistarBlue,
178
+ buttonPrimaryBackgroundSelected: e.movistarBlue55,
179
+ buttonPrimaryBackgroundHover: e.movistarBlue55,
180
+ buttonPrimaryBackgroundInverseSelected: e.movistarBlue55,
181
+ buttonSecondaryBorder: e.white,
182
+ buttonSecondaryBorderSelected: e.white,
183
+ buttonSecondaryBorderInverse: e.white,
184
+ buttonSecondaryBorderInverseSelected: e.white,
185
+ buttonSecondaryBackgroundHover: (0, _colorJs.applyAlpha)(e.white, 0.15),
186
+ buttonSecondaryBackgroundSelected: (0, _colorJs.applyAlpha)(e.white, 0.15),
187
+ buttonSecondaryBackgroundInverseHover: (0, _colorJs.applyAlpha)(e.white, 0.15),
188
+ buttonSecondaryBackgroundInverseSelected: (0, _colorJs.applyAlpha)(e.white, 0.15),
189
+ textButtonPrimary: e.grey2,
190
+ textButtonPrimaryInverse: e.grey2,
191
+ textButtonPrimaryInverseSelected: e.grey2,
192
+ textButtonSecondary: e.grey2,
193
+ textButtonSecondarySelected: e.grey2,
194
+ textButtonSecondaryInverse: e.grey2,
195
+ textButtonSecondaryInverseSelected: e.grey2,
196
+ textLink: e.movistarBlue,
197
+ textLinkInverse: e.movistarBlue,
198
+ control: e.grey6,
199
+ controlActivated: e.movistarBlue,
200
+ loadingBar: e.movistarBlue,
201
+ loadingBarBackground: (0, _colorJs.applyAlpha)(e.white, 0.05),
202
+ toggleAndroidInactive: e.grey4,
203
+ toggleAndroidBackgroundActive: e.movistarBlue20,
204
+ iosControlKnob: e.grey2,
205
+ divider: (0, _colorJs.applyAlpha)(e.white, 0.05),
206
+ dividerInverse: (0, _colorJs.applyAlpha)(e.white, 0.05),
207
+ navigationBarDivider: e.darkModeBlack,
208
+ brandHigh: e.grey6,
209
+ inverse: e.grey2,
210
+ neutralHigh: e.grey2,
211
+ neutralMedium: e.grey5,
212
+ neutralLow: e.grey6,
213
+ textPrimary: e.grey2,
214
+ textPrimaryInverse: e.grey2,
215
+ textSecondary: e.grey4,
216
+ textSecondaryInverse: e.grey4,
217
+ textNavigationBarPrimary: e.grey2,
218
+ textNavigationBarSecondary: e.grey4,
219
+ textNavigationSearchBarHint: e.grey4,
220
+ textNavigationSearchBarText: e.grey2,
221
+ textAppBar: e.grey5,
222
+ textAppBarSelected: e.grey2,
223
+ successLow: e.grey6,
224
+ warningLow: e.grey6,
225
+ errorLow: e.grey6,
226
+ promoLow: e.grey6,
227
+ brandLow: e.grey6,
228
+ successHigh: e.movistarGreen40,
229
+ warningHigh: e.egg40,
230
+ errorHigh: e.pepper40,
231
+ promoHigh: e.purple40,
232
+ successHighInverse: e.movistarGreen70,
233
+ warningHighInverse: e.egg80,
234
+ errorHighInverse: e.pepper70,
235
+ promoHighInverse: e.purple70,
236
+ neutralMediumInverse: e.grey5
237
+ },
238
+ textPresets: {
239
+ text5: {
240
+ weight: "bold"
241
+ },
242
+ text6: {
243
+ weight: "bold"
244
+ },
245
+ text7: {
246
+ weight: "bold"
247
+ },
248
+ text8: {
249
+ weight: "bold"
250
+ },
251
+ text9: {
252
+ weight: "bold"
253
+ },
254
+ text10: {
255
+ weight: "bold"
256
+ }
257
+ }
258
+ };
259
+ return o === "prominent" && (t.colors.brand = e.movistarProminentBlue, t.colors.brandHigh = e.movistarProminentBlueDark, t.colors.backgroundBrand = e.movistarProminentBlue, t.colors.navigationBarBackground = e.movistarProminentBlue, t.colors.backgroundFeedbackBottom = e.movistarProminentBlue, t.colors.controlActivated = e.movistarProminentBlue, t.colors.dividerInverse = e.movistarProminentBlueDark), t;
260
+ };
@@ -6,6 +6,7 @@ export declare const palette: {
6
6
  readonly movistarBlue30: "#80CEF9";
7
7
  readonly movistarBlue40: "#4DBAF7";
8
8
  readonly movistarBlue55: "#008EDD";
9
+ readonly movistarBlueDark: "#0B2739";
9
10
  readonly movistarGreen: "#5CB615";
10
11
  readonly movistarGreen10: "#EFF8E8";
11
12
  readonly movistarGreen30: "#ADDA8A";
@@ -39,7 +40,12 @@ export declare const palette: {
39
40
  readonly movistarProminentBlueLight20: "#CED3D7";
40
41
  readonly movistarProminentBlueLight50: "#85939C";
41
42
  readonly movistarProminentBlueLight70: "#546874";
42
- readonly darkModeBlack: "#191919";
43
- readonly darkModeGrey: "#242424";
43
+ readonly darkModeBlack: "#061824";
44
+ readonly darkModeGrey: "#092130";
45
+ readonly darkModeGrey2: "#EAEBEE";
46
+ readonly darkModeGrey3: "#CED4D7";
47
+ readonly darkModeGrey4: "#85939C";
48
+ readonly darkModeGrey5: "#6D7D88";
49
+ readonly darkModeGrey6: "#3C5261";
44
50
  };
45
51
  export declare const getMovistarSkin: GetKnownSkin;