@telefonica/mistica 15.17.0 → 15.19.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 (74) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/button.css-mistica.js +61 -52
  3. package/dist/button.css.d.ts +33 -17
  4. package/dist/button.d.ts +9 -46
  5. package/dist/button.js +188 -237
  6. package/dist/callout.d.ts +1 -0
  7. package/dist/callout.js +10 -10
  8. package/dist/card.d.ts +6 -1
  9. package/dist/card.js +375 -365
  10. package/dist/chip.d.ts +1 -0
  11. package/dist/chip.js +15 -15
  12. package/dist/dialog.d.ts +1 -0
  13. package/dist/dialog.js +18 -17
  14. package/dist/feedback.js +58 -52
  15. package/dist/inline.css-mistica.js +11 -8
  16. package/dist/inline.css.d.ts +1 -0
  17. package/dist/inline.js +12 -12
  18. package/dist/logo-blau.d.ts +4 -0
  19. package/dist/logo-blau.js +74 -0
  20. package/dist/logo-common.d.ts +9 -0
  21. package/dist/logo-common.js +21 -0
  22. package/dist/logo-movistar.d.ts +4 -0
  23. package/dist/logo-movistar.js +99 -0
  24. package/dist/logo-o2-new.d.ts +4 -0
  25. package/dist/logo-o2-new.js +29 -0
  26. package/dist/logo-o2.d.ts +4 -0
  27. package/dist/logo-o2.js +29 -0
  28. package/dist/logo-telefonica.d.ts +4 -0
  29. package/dist/logo-telefonica.js +197 -0
  30. package/dist/logo-tu.d.ts +4 -0
  31. package/dist/logo-tu.js +28 -0
  32. package/dist/logo-vivo.d.ts +4 -0
  33. package/dist/logo-vivo.js +81 -0
  34. package/dist/logo.d.ts +10 -10
  35. package/dist/logo.js +174 -534
  36. package/dist/navigation-bar.d.ts +7 -0
  37. package/dist/navigation-bar.js +99 -91
  38. package/dist/package-version.js +1 -1
  39. package/dist/popover.d.ts +1 -0
  40. package/dist/popover.js +9 -7
  41. package/dist/snackbar-context.js +23 -22
  42. package/dist/snackbar.d.ts +1 -0
  43. package/dist/snackbar.js +51 -47
  44. package/dist/text.d.ts +1 -0
  45. package/dist/text.js +133 -109
  46. package/dist/tooltip.d.ts +1 -0
  47. package/dist/tooltip.js +110 -110
  48. package/dist-es/button.css-mistica.js +36 -18
  49. package/dist-es/button.js +219 -268
  50. package/dist-es/callout.js +38 -38
  51. package/dist-es/card.js +492 -482
  52. package/dist-es/chip.js +25 -25
  53. package/dist-es/dialog.js +22 -21
  54. package/dist-es/feedback.js +96 -89
  55. package/dist-es/inline.css-mistica.js +3 -3
  56. package/dist-es/inline.js +23 -23
  57. package/dist-es/logo-blau.js +65 -0
  58. package/dist-es/logo-common.js +12 -0
  59. package/dist-es/logo-movistar.js +90 -0
  60. package/dist-es/logo-o2-new.js +20 -0
  61. package/dist-es/logo-o2.js +20 -0
  62. package/dist-es/logo-telefonica.js +188 -0
  63. package/dist-es/logo-tu.js +19 -0
  64. package/dist-es/logo-vivo.js +72 -0
  65. package/dist-es/logo.js +132 -533
  66. package/dist-es/navigation-bar.js +163 -155
  67. package/dist-es/package-version.js +1 -1
  68. package/dist-es/popover.js +26 -24
  69. package/dist-es/snackbar-context.js +25 -24
  70. package/dist-es/snackbar.js +81 -77
  71. package/dist-es/style.css +1 -1
  72. package/dist-es/text.js +143 -119
  73. package/dist-es/tooltip.js +149 -149
  74. package/package.json +1 -1
@@ -53,52 +53,52 @@ function _object_spread_props(target, source) {
53
53
  }
54
54
  import { jsx as r, jsxs as e } from "react/jsx-runtime";
55
55
  import m from "./stack.js";
56
- import b from "./inline.js";
57
- import v from "./box.js";
58
- import { useTheme as x } from "./hooks.js";
59
- import { useThemeVariant as C, ThemeVariant as B } from "./theme-variant-context.js";
60
- import { Text3 as k, Text2 as I } from "./text.js";
61
- import R from "./generated/mistica-icons/icon-close-regular.js";
62
- import { IconButton as T } from "./icon-button.js";
63
- import N from "classnames";
64
- import S from "./button-group.js";
65
- import { container as y, content as V, closeButtonContainerSize as j, closeButtonContainer as A } from "./callout.css-mistica.js";
66
- import { vars as P } from "./image.css-mistica.js";
67
- import { sprinkles as $ } from "./sprinkles.css-mistica.js";
56
+ import v from "./inline.js";
57
+ import x from "./box.js";
58
+ import { useTheme as C } from "./hooks.js";
59
+ import { useThemeVariant as B, ThemeVariant as k } from "./theme-variant-context.js";
60
+ import { Text3 as I, Text2 as R } from "./text.js";
61
+ import T from "./generated/mistica-icons/icon-close-regular.js";
62
+ import { IconButton as N } from "./icon-button.js";
63
+ import S from "classnames";
64
+ import y from "./button-group.js";
65
+ import { container as V, content as j, closeButtonContainerSize as A, closeButtonContainer as P } from "./callout.css-mistica.js";
66
+ import { vars as $ } from "./image.css-mistica.js";
67
+ import { sprinkles as w } from "./sprinkles.css-mistica.js";
68
68
  import { vars as o } from "./skins/skin-contract.css-mistica.js";
69
- import { getPrefixedDataAttributes as w } from "./utils/dom.js";
70
- import { applyCssVars as z } from "./utils/css.js";
71
- const D = (param)=>{
72
- let { title: a, titleAs: c = "h2", description: d, icon: i, onClose: t, button: l, secondaryButton: s, buttonLink: n, "aria-label": p, dataAttributes: u, role: f } = param;
73
- const h = C(), { texts: g } = x();
69
+ import { getPrefixedDataAttributes as z } from "./utils/dom.js";
70
+ import { applyCssVars as D } from "./utils/css.js";
71
+ const G = (param)=>{
72
+ let { title: a, titleAs: c = "h2", description: d, icon: i, onClose: t, closeButtonLabel: p, button: l, secondaryButton: s, buttonLink: n, "aria-label": u, dataAttributes: f, role: h } = param;
73
+ const g = B(), { texts: b } = C();
74
74
  return /* @__PURE__ */ r("section", _object_spread_props(_object_spread({
75
- className: N(y, $({
75
+ className: S(V, w({
76
76
  background: {
77
77
  inverse: o.colors.backgroundContainer,
78
78
  alternative: o.colors.backgroundContainer,
79
79
  default: o.colors.backgroundContainerAlternative
80
- }[h]
80
+ }[g]
81
81
  })),
82
- style: z({
83
- [P.mediaBorderRadius]: o.borderRadii.mediaSmall
82
+ style: D({
83
+ [$.mediaBorderRadius]: o.borderRadii.mediaSmall
84
84
  }),
85
- "aria-label": p !== null && p !== void 0 ? p : a,
86
- role: f
87
- }, w(u, "Callout")), {
88
- children: /* @__PURE__ */ e(B, {
85
+ "aria-label": u !== null && u !== void 0 ? u : a,
86
+ role: h
87
+ }, z(f, "Callout")), {
88
+ children: /* @__PURE__ */ e(k, {
89
89
  isInverse: !1,
90
90
  children: [
91
- i && /* @__PURE__ */ r(v, {
91
+ i && /* @__PURE__ */ r(x, {
92
92
  paddingRight: 16,
93
93
  children: i
94
94
  }),
95
95
  /* @__PURE__ */ e("div", {
96
- className: V,
96
+ className: j,
97
97
  children: [
98
98
  /* @__PURE__ */ e(m, {
99
99
  space: 16,
100
100
  children: [
101
- /* @__PURE__ */ e(b, {
101
+ /* @__PURE__ */ e(v, {
102
102
  fullWidth: !0,
103
103
  alignItems: "flex-start",
104
104
  space: "between",
@@ -106,12 +106,12 @@ const D = (param)=>{
106
106
  /* @__PURE__ */ e(m, {
107
107
  space: 4,
108
108
  children: [
109
- /* @__PURE__ */ r(k, {
109
+ /* @__PURE__ */ r(I, {
110
110
  as: c,
111
111
  regular: !0,
112
112
  children: a
113
113
  }),
114
- /* @__PURE__ */ r(I, {
114
+ /* @__PURE__ */ r(R, {
115
115
  as: "p",
116
116
  regular: !0,
117
117
  color: o.colors.textSecondary,
@@ -122,11 +122,11 @@ const D = (param)=>{
122
122
  t && // Create empty div in order to fill space that iconButton occupies.
123
123
  // Without this, the content's vertical alignment can be affected
124
124
  /* @__PURE__ */ r("div", {
125
- className: j
125
+ className: A
126
126
  })
127
127
  ]
128
128
  }),
129
- (l || s || n) && /* @__PURE__ */ r(S, {
129
+ (l || s || n) && /* @__PURE__ */ r(y, {
130
130
  primaryButton: l,
131
131
  secondaryButton: s,
132
132
  link: n
@@ -134,14 +134,14 @@ const D = (param)=>{
134
134
  ]
135
135
  }),
136
136
  t && /* @__PURE__ */ r("div", {
137
- className: A,
138
- children: /* @__PURE__ */ r(T, {
137
+ className: P,
138
+ children: /* @__PURE__ */ r(N, {
139
139
  small: !0,
140
140
  bleedY: !0,
141
141
  bleedRight: !0,
142
- Icon: R,
142
+ Icon: T,
143
143
  onPress: t,
144
- "aria-label": g.closeButtonLabel
144
+ "aria-label": p !== null && p !== void 0 ? p : b.closeButtonLabel
145
145
  })
146
146
  })
147
147
  ]
@@ -149,5 +149,5 @@ const D = (param)=>{
149
149
  ]
150
150
  })
151
151
  }));
152
- }, rr = D;
153
- export { rr as default };
152
+ }, er = G;
153
+ export { er as default };