@telefonica/mistica 13.2.3 → 13.4.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/header.js CHANGED
@@ -110,7 +110,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
110
110
  return target;
111
111
  }
112
112
  const J = (param)=>{
113
- let { pretitle: i , title: e , description: t , dataAttributes: n , preamount: a , amount: s , button: c , subtitle: g , isErrorAmount: H , secondaryButton: x } = param;
113
+ let { pretitle: i , title: e , description: o , dataAttributes: n , preamount: c , amount: s , button: a , subtitle: g , isErrorAmount: H , secondaryButton: x } = param;
114
114
  const { isTabletOrSmaller: L } = (0, _hooksJs.useScreenSize)(), O = (0, _themeVariantContextJs.useIsInverseVariant)(), f = (m, y)=>{
115
115
  if (typeof m == "string") return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, _objectSpreadProps(_objectSpread({
116
116
  regular: !0
@@ -130,7 +130,7 @@ const J = (param)=>{
130
130
  space: L ? 24 : 32,
131
131
  dataAttributes: n,
132
132
  children: [
133
- (e || i || t) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
133
+ (e || i || o) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
134
134
  paddingRight: 16,
135
135
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
136
136
  space: 8,
@@ -143,21 +143,21 @@ const J = (param)=>{
143
143
  "aria-level": 2,
144
144
  children: e
145
145
  }),
146
- t && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, {
146
+ o && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, {
147
147
  regular: !0,
148
148
  color: _skinContractCssMisticaJs.vars.colors.textSecondary,
149
- children: t
149
+ children: o
150
150
  })
151
151
  ]
152
152
  })
153
153
  }),
154
- (a || s || c || g) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
154
+ (c || s || a || g) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
155
155
  space: 16,
156
156
  children: [
157
- (a || s) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
157
+ (c || s) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
158
158
  space: 8,
159
159
  children: [
160
- a && f(a, {
160
+ c && f(c, {
161
161
  color: _skinContractCssMisticaJs.vars.colors.textPrimary
162
162
  }),
163
163
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text8, {
@@ -166,8 +166,8 @@ const J = (param)=>{
166
166
  })
167
167
  ]
168
168
  }),
169
- (c || x) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
170
- primaryButton: c,
169
+ (a || x) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
170
+ primaryButton: a,
171
171
  secondaryButton: x
172
172
  }),
173
173
  g && f(g, {})
@@ -176,7 +176,7 @@ const J = (param)=>{
176
176
  ]
177
177
  });
178
178
  }, K = (param)=>{
179
- let { title: i , description: e , button: t } = param;
179
+ let { title: i , description: e , button: o } = param;
180
180
  const { isTabletOrSmaller: n } = (0, _hooksJs.useScreenSize)();
181
181
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
182
182
  space: 32,
@@ -194,12 +194,12 @@ const J = (param)=>{
194
194
  })
195
195
  ]
196
196
  }),
197
- t
197
+ o
198
198
  ]
199
199
  });
200
200
  }, N = (param)=>{
201
- let { isInverse: i = !0 , breadcrumbs: e , header: t , extra: n , sideBySideExtraOnDesktop: a = !1 , dataAttributes: s } = param;
202
- const { isTabletOrSmaller: c } = (0, _hooksJs.useScreenSize)();
201
+ let { isInverse: i = !0 , breadcrumbs: e , header: o , extra: n , sideBySideExtraOnDesktop: c = !1 , dataAttributes: s } = param;
202
+ const { isTabletOrSmaller: a } = (0, _hooksJs.useScreenSize)();
203
203
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_responsiveLayoutJs.default, {
204
204
  isInverse: i,
205
205
  dataAttributes: _objectSpread({
@@ -207,17 +207,17 @@ const J = (param)=>{
207
207
  }, s),
208
208
  children: [
209
209
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_overscrollColorContextJs.default, {}),
210
- c ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
211
- paddingTop: 32,
210
+ a ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
211
+ paddingTop: o ? 32 : 0,
212
212
  paddingBottom: 24,
213
213
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
214
214
  space: 24,
215
215
  children: [
216
- t,
216
+ o,
217
217
  n
218
218
  ]
219
219
  })
220
- }) : a ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
220
+ }) : c ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
221
221
  paddingTop: e ? 16 : 48,
222
222
  paddingBottom: 48,
223
223
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_gridLayoutJs.default, {
@@ -226,7 +226,7 @@ const J = (param)=>{
226
226
  space: 32,
227
227
  children: [
228
228
  e,
229
- t
229
+ o
230
230
  ]
231
231
  }),
232
232
  right: n
@@ -235,13 +235,13 @@ const J = (param)=>{
235
235
  paddingTop: e ? 16 : 48,
236
236
  paddingBottom: 48,
237
237
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
238
- space: c ? 24 : 32,
238
+ space: a ? 24 : 32,
239
239
  children: [
240
240
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
241
241
  space: 32,
242
242
  children: [
243
243
  e,
244
- t
244
+ o
245
245
  ]
246
246
  }),
247
247
  n
@@ -252,12 +252,12 @@ const J = (param)=>{
252
252
  });
253
253
  }, Q = (param)=>{
254
254
  let { isInverse: i = !0 , children: e } = param;
255
- const { isTabletOrSmaller: t } = (0, _hooksJs.useScreenSize)();
255
+ const { isTabletOrSmaller: o } = (0, _hooksJs.useScreenSize)();
256
256
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_responsiveLayoutJs.default, {
257
257
  isInverse: i,
258
258
  children: [
259
259
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_overscrollColorContextJs.default, {}),
260
- t ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
260
+ o ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
261
261
  paddingTop: 12,
262
262
  paddingBottom: 24,
263
263
  children: e
@@ -0,0 +1,24 @@
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
+ actions: ()=>t,
13
+ container: ()=>n,
14
+ containerDesktop: ()=>a,
15
+ containerMobile: ()=>_,
16
+ layout: ()=>i,
17
+ vars: ()=>p
18
+ });
19
+ require("./sprinkles.css.ts.vanilla.js");
20
+ require("./responsive-layout.css.ts.vanilla.js");
21
+ require("./hero.css.ts.vanilla.js");
22
+ var t = "_16rbpto6 _1y2v1nf5g _1y2v1nf62 _1y2v1nf5w", n = "_16rbpto2 _1y2v1nf5g", a = "_1y2v1nf5v _1y2v1nf83", _ = "_1y2v1nf5m", i = "_16rbpto7", p = {
23
+ height: "var(--_16rbpto0)"
24
+ };
@@ -0,0 +1,8 @@
1
+ export declare const vars: {
2
+ height: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3
+ };
4
+ export declare const container: string;
5
+ export declare const containerMobile: string;
6
+ export declare const containerDesktop: string;
7
+ export declare const actions: string;
8
+ export declare const layout: string;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: ()=>s
8
+ });
9
+ const s = "";
package/dist/hero.d.ts ADDED
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import Tag from './tag';
3
+ import { ButtonLink, ButtonPrimary } from './button';
4
+ import Video from './video';
5
+ import Image from './image';
6
+ import type { DataAttributes, RendersElement, RendersNullableElement } from './utils/types';
7
+ type HeroProps = {
8
+ height?: string;
9
+ background?: 'default' | 'alternative' | 'brand' | 'brand-secondary';
10
+ media: RendersElement<typeof Image> | RendersElement<typeof Video>;
11
+ headline?: RendersNullableElement<typeof Tag>;
12
+ pretitle?: string;
13
+ title?: string;
14
+ description?: string;
15
+ descriptionLinesMax?: number;
16
+ extra?: React.ReactNode;
17
+ button?: RendersNullableElement<typeof ButtonPrimary>;
18
+ buttonLink?: RendersNullableElement<typeof ButtonLink>;
19
+ dataAttributes?: DataAttributes;
20
+ desktopMediaPosition?: 'left' | 'right';
21
+ };
22
+ declare const Hero: React.ForwardRefExoticComponent<HeroProps & React.RefAttributes<HTMLDivElement>>;
23
+ export default Hero;
package/dist/hero.js ADDED
@@ -0,0 +1,296 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: ()=>er
8
+ });
9
+ const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
10
+ const _classnames = /*#__PURE__*/ _interopRequireDefault(require("classnames"));
11
+ const _hooksJs = require("./hooks.js");
12
+ const _imageJs = require("./image.js");
13
+ const _textJs = require("./text.js");
14
+ const _gridLayoutJs = /*#__PURE__*/ _interopRequireDefault(require("./grid-layout.js"));
15
+ const _boxJs = /*#__PURE__*/ _interopRequireDefault(require("./box.js"));
16
+ const _stackJs = /*#__PURE__*/ _interopRequireDefault(require("./stack.js"));
17
+ const _buttonGroupJs = /*#__PURE__*/ _interopRequireDefault(require("./button-group.js"));
18
+ const _skinContractCssMisticaJs = require("./skins/skin-contract.css-mistica.js");
19
+ const _heroCssMisticaJs = require("./hero.css-mistica.js");
20
+ const _dynamic = require("@vanilla-extract/dynamic");
21
+ const _carouselJs = require("./carousel.js");
22
+ const _domJs = require("./utils/dom.js");
23
+ const _sprinklesCssMisticaJs = require("./sprinkles.css-mistica.js");
24
+ const _themeVariantContextJs = require("./theme-variant-context.js");
25
+ const _jsxRuntimeJs = require("./_virtual/jsx-runtime.js");
26
+ function _interopRequireDefault(obj) {
27
+ return obj && obj.__esModule ? obj : {
28
+ default: obj
29
+ };
30
+ }
31
+ function _getRequireWildcardCache(nodeInterop) {
32
+ if (typeof WeakMap !== "function") return null;
33
+ var cacheBabelInterop = new WeakMap();
34
+ var cacheNodeInterop = new WeakMap();
35
+ return (_getRequireWildcardCache = function(nodeInterop) {
36
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
37
+ })(nodeInterop);
38
+ }
39
+ function _interopRequireWildcard(obj, nodeInterop) {
40
+ if (!nodeInterop && obj && obj.__esModule) {
41
+ return obj;
42
+ }
43
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
44
+ return {
45
+ default: obj
46
+ };
47
+ }
48
+ var cache = _getRequireWildcardCache(nodeInterop);
49
+ if (cache && cache.has(obj)) {
50
+ return cache.get(obj);
51
+ }
52
+ var newObj = {};
53
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
54
+ for(var key in obj){
55
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
56
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
57
+ if (desc && (desc.get || desc.set)) {
58
+ Object.defineProperty(newObj, key, desc);
59
+ } else {
60
+ newObj[key] = obj[key];
61
+ }
62
+ }
63
+ }
64
+ newObj.default = obj;
65
+ if (cache) {
66
+ cache.set(obj, newObj);
67
+ }
68
+ return newObj;
69
+ }
70
+ function _defineProperty(obj, key, value) {
71
+ if (key in obj) {
72
+ Object.defineProperty(obj, key, {
73
+ value: value,
74
+ enumerable: true,
75
+ configurable: true,
76
+ writable: true
77
+ });
78
+ } else {
79
+ obj[key] = value;
80
+ }
81
+ return obj;
82
+ }
83
+ function _objectSpread(target) {
84
+ for(var i = 1; i < arguments.length; i++){
85
+ var source = arguments[i] != null ? arguments[i] : {};
86
+ var ownKeys = Object.keys(source);
87
+ if (typeof Object.getOwnPropertySymbols === "function") {
88
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
89
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
90
+ }));
91
+ }
92
+ ownKeys.forEach(function(key) {
93
+ _defineProperty(target, key, source[key]);
94
+ });
95
+ }
96
+ return target;
97
+ }
98
+ function ownKeys(object, enumerableOnly) {
99
+ var keys = Object.keys(object);
100
+ if (Object.getOwnPropertySymbols) {
101
+ var symbols = Object.getOwnPropertySymbols(object);
102
+ if (enumerableOnly) {
103
+ symbols = symbols.filter(function(sym) {
104
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
105
+ });
106
+ }
107
+ keys.push.apply(keys, symbols);
108
+ }
109
+ return keys;
110
+ }
111
+ function _objectSpreadProps(target, source) {
112
+ source = source != null ? source : {};
113
+ if (Object.getOwnPropertyDescriptors) {
114
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
115
+ } else {
116
+ ownKeys(Object(source)).forEach(function(key) {
117
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
118
+ });
119
+ }
120
+ return target;
121
+ }
122
+ function _objectWithoutProperties(source, excluded) {
123
+ if (source == null) return {};
124
+ var target = _objectWithoutPropertiesLoose(source, excluded);
125
+ var key, i;
126
+ if (Object.getOwnPropertySymbols) {
127
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
128
+ for(i = 0; i < sourceSymbolKeys.length; i++){
129
+ key = sourceSymbolKeys[i];
130
+ if (excluded.indexOf(key) >= 0) continue;
131
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
132
+ target[key] = source[key];
133
+ }
134
+ }
135
+ return target;
136
+ }
137
+ function _objectWithoutPropertiesLoose(source, excluded) {
138
+ if (source == null) return {};
139
+ var target = {};
140
+ var sourceKeys = Object.keys(source);
141
+ var key, i;
142
+ for(i = 0; i < sourceKeys.length; i++){
143
+ key = sourceKeys[i];
144
+ if (excluded.indexOf(key) >= 0) continue;
145
+ target[key] = source[key];
146
+ }
147
+ return target;
148
+ }
149
+ const k = (param)=>/* @__PURE__ */ {
150
+ let { children: e , isInverse: o } = param;
151
+ return (0, _jsxRuntimeJs.jsx)(_themeVariantContextJs.ThemeVariant, {
152
+ isInverse: o,
153
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
154
+ className: _heroCssMisticaJs.layout,
155
+ children: e
156
+ })
157
+ });
158
+ }, v = (param)=>/* @__PURE__ */ {
159
+ let { headline: e , title: o , pretitle: a , description: i , descriptionLinesMax: d , extra: n , button: l , secondaryButton: p , buttonLink: m } = param;
160
+ return (0, _jsxRuntimeJs.jsxs)("section", {
161
+ className: (0, _sprinklesCssMisticaJs.sprinkles)({
162
+ height: "100%",
163
+ display: "flex",
164
+ justifyContent: "space-between",
165
+ flexDirection: "column"
166
+ }),
167
+ children: [
168
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", {
169
+ children: [
170
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
171
+ space: 16,
172
+ children: [
173
+ e && e,
174
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_stackJs.default, {
175
+ space: 8,
176
+ children: [
177
+ a && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, {
178
+ as: "p",
179
+ regular: !0,
180
+ children: a
181
+ }),
182
+ o && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text8, {
183
+ as: "h1",
184
+ children: o
185
+ })
186
+ ]
187
+ }),
188
+ i && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_textJs.Text3, {
189
+ as: "p",
190
+ regular: !0,
191
+ color: _skinContractCssMisticaJs.vars.colors.textSecondary,
192
+ truncate: d,
193
+ children: i
194
+ })
195
+ ]
196
+ }),
197
+ n && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
198
+ children: n
199
+ })
200
+ ]
201
+ }),
202
+ (l || m) && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
203
+ className: _heroCssMisticaJs.actions,
204
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_buttonGroupJs.default, {
205
+ primaryButton: l,
206
+ secondaryButton: p,
207
+ link: m
208
+ })
209
+ })
210
+ ]
211
+ });
212
+ }, C = {
213
+ default: _skinContractCssMisticaJs.vars.colors.background,
214
+ alternative: _skinContractCssMisticaJs.vars.colors.backgroundAlternative,
215
+ brand: _skinContractCssMisticaJs.vars.colors.backgroundBrand,
216
+ "brand-secondary": _skinContractCssMisticaJs.vars.colors.backgroundBrand
217
+ }, er = /*#__PURE__*/ _react.forwardRef((_param, l)=>{
218
+ var { height: e , background: o = "default" , media: a , desktopMediaPosition: i = "left" , dataAttributes: d } = _param, n = _objectWithoutProperties(_param, [
219
+ "height",
220
+ "background",
221
+ "media",
222
+ "desktopMediaPosition",
223
+ "dataAttributes"
224
+ ]);
225
+ const { isTabletOrSmaller: p } = (0, _hooksJs.useScreenSize)(), m = (0, _carouselJs.useIsInsideSlideshowContext)(), h = o === "brand" || o === "brand-secondary";
226
+ if (p) return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_imageJs.MediaBorderRadiusProvider, {
227
+ value: !1,
228
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)("div", _objectSpreadProps(_objectSpread({}, (0, _domJs.getPrefixedDataAttributes)(_objectSpread({
229
+ "component-name": "Hero"
230
+ }, d))), {
231
+ ref: l,
232
+ style: _objectSpread({
233
+ backgroundColor: C[o]
234
+ }, e === "100vh" ? {
235
+ maxHeight: "-webkit-fill-available"
236
+ } : {}, (0, _dynamic.assignInlineVars)({
237
+ [_heroCssMisticaJs.vars.height]: e != null ? e : "100%"
238
+ })),
239
+ className: (0, _classnames.default)(_heroCssMisticaJs.container, _heroCssMisticaJs.containerMobile),
240
+ children: [
241
+ a,
242
+ /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(k, {
243
+ isInverse: h,
244
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
245
+ paddingTop: 24,
246
+ paddingBottom: m ? 48 : 24,
247
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(v, _objectSpread({}, n))
248
+ })
249
+ })
250
+ ]
251
+ }))
252
+ });
253
+ const H = i === "left" ? a : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
254
+ paddingRight: 24,
255
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(v, _objectSpread({}, n))
256
+ }), I = i === "right" ? a : /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
257
+ paddingLeft: 24,
258
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(v, _objectSpread({}, n))
259
+ });
260
+ return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_imageJs.MediaBorderRadiusProvider, {
261
+ value: !0,
262
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", _objectSpreadProps(_objectSpread({}, (0, _domJs.getPrefixedDataAttributes)(_objectSpread({
263
+ "component-name": "Hero"
264
+ }, d))), {
265
+ ref: l,
266
+ style: _objectSpread({
267
+ backgroundColor: C[o]
268
+ }, e === "100vh" ? {
269
+ maxHeight: "-webkit-fill-available"
270
+ } : {}, (0, _dynamic.assignInlineVars)({
271
+ [_heroCssMisticaJs.vars.height]: e != null ? e : "100%"
272
+ })),
273
+ className: (0, _sprinklesCssMisticaJs.sprinkles)({
274
+ height: "100%",
275
+ display: "flex",
276
+ alignItems: "center"
277
+ }),
278
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(k, {
279
+ isInverse: h,
280
+ children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_gridLayoutJs.default, {
281
+ template: "6+6",
282
+ left: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
283
+ paddingY: 56,
284
+ className: (0, _classnames.default)(_heroCssMisticaJs.container, _heroCssMisticaJs.containerDesktop),
285
+ children: H
286
+ }),
287
+ right: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_boxJs.default, {
288
+ paddingY: 56,
289
+ className: (0, _classnames.default)(_heroCssMisticaJs.container, _heroCssMisticaJs.containerDesktop),
290
+ children: I
291
+ })
292
+ })
293
+ })
294
+ }))
295
+ });
296
+ });
package/dist/image.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import type { DataAttributes } from './utils/types';
3
- export declare const useDisableBorderRadius: () => boolean;
4
- export declare const DisableBorderRadiusProvider: ({ children }: {
3
+ export declare const useMediaBorderRadius: () => boolean;
4
+ export declare const MediaBorderRadiusProvider: ({ children, value, }: {
5
5
  children: React.ReactNode;
6
+ value: boolean;
6
7
  }) => JSX.Element;
7
8
  export type AspectRatio = '1:1' | '16:9' | '7:10' | '4:3';
8
9
  export declare const RATIO: {
package/dist/image.js CHANGED
@@ -9,10 +9,10 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- DisableBorderRadiusProvider: ()=>s1,
12
+ MediaBorderRadiusProvider: ()=>r1,
13
13
  RATIO: ()=>U,
14
- default: ()=>r1,
15
- useDisableBorderRadius: ()=>O
14
+ default: ()=>s1,
15
+ useMediaBorderRadius: ()=>O
16
16
  });
17
17
  const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
18
18
  const _classnames = /*#__PURE__*/ _interopRequireDefault(require("classnames"));
@@ -150,10 +150,10 @@ function _objectWithoutPropertiesLoose(source, excluded) {
150
150
  }
151
151
  return target;
152
152
  }
153
- const k = /*#__PURE__*/ _react.createContext(!1), O = ()=>_react.useContext(k), s1 = (param)=>/* @__PURE__ */ {
154
- let { children: t } = param;
153
+ const k = /*#__PURE__*/ _react.createContext(!0), O = ()=>_react.useContext(k), r1 = (param)=>/* @__PURE__ */ {
154
+ let { children: t , value: r } = param;
155
155
  return (0, _jsxRuntimeJs.jsx)(k.Provider, {
156
- value: !0,
156
+ value: r,
157
157
  children: t
158
158
  });
159
159
  }, P = (param)=>/* @__PURE__ */ {
@@ -172,7 +172,7 @@ const k = /*#__PURE__*/ _react.createContext(!1), O = ()=>_react.useContext(k),
172
172
  });
173
173
  }, K = (param)=>{
174
174
  let { noBorderRadius: t } = param;
175
- const r = (0, _themeVariantContextJs.useIsInverseVariant)(), { skinName: l } = (0, _hooksJs.useTheme)();
175
+ const r = (0, _themeVariantContextJs.useIsInverseVariant)(), { skinName: c } = (0, _hooksJs.useTheme)();
176
176
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
177
177
  style: {
178
178
  height: "100%",
@@ -183,7 +183,7 @@ const k = /*#__PURE__*/ _react.createContext(!1), O = ()=>_react.useContext(k),
183
183
  backgroundColor: r ? _skinContractCssMisticaJs.vars.colors.backgroundSkeletonInverse : _skinContractCssMisticaJs.vars.colors.backgroundSkeleton,
184
184
  borderRadius: t ? void 0 : 8
185
185
  },
186
- children: l === _constantsJs.VIVO_SKIN ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(P, {
186
+ children: c === _constantsJs.VIVO_SKIN ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(P, {
187
187
  style: {
188
188
  width: "10%",
189
189
  minWidth: 24,
@@ -208,8 +208,8 @@ const k = /*#__PURE__*/ _react.createContext(!1), O = ()=>_react.useContext(k),
208
208
  "16:9": 16 / 9,
209
209
  "7:10": 7 / 10,
210
210
  "4:3": 4 / 3
211
- }, r1 = /*#__PURE__*/ _react.forwardRef((_param, y)=>{
212
- var { aspectRatio: t = "1:1" , alt: r = "" , dataAttributes: l , noBorderRadius: c , src: I , onError: d , onLoad: a , loadingFallback: p = !0 , errorFallback: x = !0 } = _param, o = _objectWithoutProperties(_param, [
211
+ }, s1 = /*#__PURE__*/ _react.forwardRef((_param, y)=>{
212
+ var { aspectRatio: t = "1:1" , alt: r = "" , dataAttributes: c , noBorderRadius: l , src: I , onError: d , onLoad: a , loadingFallback: p = !0 , errorFallback: x = !0 } = _param, o = _objectWithoutProperties(_param, [
213
213
  "aspectRatio",
214
214
  "alt",
215
215
  "dataAttributes",
@@ -220,13 +220,13 @@ const k = /*#__PURE__*/ _react.createContext(!1), O = ()=>_react.useContext(k),
220
220
  "loadingFallback",
221
221
  "errorFallback"
222
222
  ]);
223
- const C = _react.useRef(), R = O(), m = c != null ? c : R, [u, f] = _react.useState(!1), [S, g] = _react.useState(!0), [D, v] = _react.useState(!1), n = typeof t == "number" ? t : U[t], b = p && !!(n !== 0 || o.width && o.height), H = x && !!(n !== 0 || o.width && o.height), h = _react.useCallback(()=>{
223
+ const C = _react.useRef(), R = O(), m = l != null ? l : !R, [u, f] = _react.useState(!1), [S, g] = _react.useState(!0), [M, v] = _react.useState(!1), n = typeof t == "number" ? t : U[t], b = p && !!(n !== 0 || o.width && o.height), H = x && !!(n !== 0 || o.width && o.height), h = _react.useCallback(()=>{
224
224
  f(!1), g(!1), setTimeout(()=>{
225
225
  v(!0);
226
226
  }, _imageCssMisticaJs.FADE_IN_DURATION_MS), a == null || a();
227
227
  }, [
228
228
  a
229
- ]), z = /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("img", _objectSpreadProps(_objectSpread({}, (0, _domJs.getPrefixedDataAttributes)(l)), {
229
+ ]), z = /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("img", _objectSpreadProps(_objectSpread({}, (0, _domJs.getPrefixedDataAttributes)(c)), {
230
230
  style: _objectSpread({}, S && b ? {
231
231
  opacity: 0
232
232
  } : {
@@ -257,7 +257,7 @@ const k = /*#__PURE__*/ _react.createContext(!1), O = ()=>_react.useContext(k),
257
257
  width: o.width,
258
258
  height: o.height,
259
259
  children: [
260
- b && !D && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
260
+ b && !M && /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
261
261
  style: {
262
262
  position: "absolute",
263
263
  width: "100%",
package/dist/index.d.ts CHANGED
@@ -51,6 +51,7 @@ export { default as HighlightedCard } from './highlighted-card';
51
51
  export { default as Stepper } from './stepper';
52
52
  export { default as ProgressBar } from './progress-bar';
53
53
  export { MediaCard, DataCard, SnapCard } from './card';
54
+ export { default as Hero } from './hero';
54
55
  export { default as Divider } from './divider';
55
56
  export { default as Menu } from './menu';
56
57
  export { default as EmptyState } from './empty-state';
package/dist/index.js CHANGED
@@ -52,6 +52,7 @@ _export(exports, {
52
52
  GridLayout: ()=>_gridLayoutJs.default,
53
53
  Header: ()=>_headerJs.Header,
54
54
  HeaderLayout: ()=>_headerJs.HeaderLayout,
55
+ Hero: ()=>_heroJs.default,
55
56
  HighlightedCard: ()=>_highlightedCardJs.default,
56
57
  IbanField: ()=>_ibanFieldJs.default,
57
58
  Icon2GFilled: ()=>_icon2GFilledJs.default,
@@ -1873,6 +1874,7 @@ const _highlightedCardJs = /*#__PURE__*/ _interopRequireDefault(require("./highl
1873
1874
  const _stepperJs = /*#__PURE__*/ _interopRequireDefault(require("./stepper.js"));
1874
1875
  const _progressBarJs = /*#__PURE__*/ _interopRequireDefault(require("./progress-bar.js"));
1875
1876
  const _cardJs = require("./card.js");
1877
+ const _heroJs = /*#__PURE__*/ _interopRequireDefault(require("./hero.js"));
1876
1878
  const _dividerJs = /*#__PURE__*/ _interopRequireDefault(require("./divider.js"));
1877
1879
  const _menuJs = /*#__PURE__*/ _interopRequireDefault(require("./menu.js"));
1878
1880
  const _emptyStateJs = /*#__PURE__*/ _interopRequireDefault(require("./empty-state.js"));
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "PACKAGE_VERSION", {
6
6
  enumerable: true,
7
7
  get: ()=>o
8
8
  });
9
- const o = "13.2.3";
9
+ const o = "13.4.0";
@@ -1,3 +1,7 @@
1
+ export declare const MOBILE_SIDE_MARGIN = 16;
2
+ export declare const TABLET_SIDE_MARGIN = 32;
3
+ export declare const SMALL_DESKTOP_SIDE_MARGIN = 40;
4
+ export declare const LARGE_DESKTOP_MAX_WIDTH = 1224;
1
5
  export declare const vars: {
2
6
  sideMargin: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3
7
  };
@@ -4,5 +4,5 @@ export interface SearchFieldProps extends CommonFormFieldProps {
4
4
  onChangeValue?: (value: string, rawValue: string) => void;
5
5
  getSuggestions?: (value: string) => ReadonlyArray<string>;
6
6
  }
7
- declare const SearchField: React.FC<SearchFieldProps>;
7
+ declare const SearchField: React.ForwardRefExoticComponent<SearchFieldProps & React.RefAttributes<any>>;
8
8
  export default SearchField;