@telefonica/mistica 16.1.0 → 16.2.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/css/mistica.css +1 -1
- package/dist/accordion.css-mistica.js +12 -9
- package/dist/accordion.css.d.ts +1 -0
- package/dist/accordion.js +36 -39
- package/dist/align.css-mistica.js +12 -0
- package/dist/align.css.d.ts +1 -0
- package/dist/align.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/align.d.ts +12 -0
- package/dist/align.js +79 -0
- package/dist/box.css-mistica.js +41 -0
- package/dist/box.css.d.ts +23 -0
- package/dist/box.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/box.d.ts +4 -0
- package/dist/box.js +39 -31
- package/dist/boxed.css-mistica.js +10 -5
- package/dist/boxed.css.d.ts +3 -0
- package/dist/boxed.js +20 -24
- package/dist/callout.css-mistica.js +12 -4
- package/dist/callout.css.d.ts +1 -0
- package/dist/callout.js +14 -22
- package/dist/card.css-mistica.js +26 -23
- package/dist/card.css.d.ts +1 -0
- package/dist/card.js +17 -23
- package/dist/community/advanced-data-card.css-mistica.js +32 -23
- package/dist/community/advanced-data-card.css.d.ts +3 -0
- package/dist/community/advanced-data-card.js +46 -55
- package/dist/empty-state.css-mistica.js +11 -8
- package/dist/empty-state.css.d.ts +1 -0
- package/dist/empty-state.js +10 -13
- package/dist/form.css-mistica.js +12 -0
- package/dist/form.css.d.ts +1 -0
- package/dist/form.js +8 -10
- package/dist/grid.css-mistica.js +143 -126
- package/dist/grid.css.d.ts +13 -0
- package/dist/grid.js +35 -38
- package/dist/hero.css-mistica.js +14 -8
- package/dist/hero.css.d.ts +2 -0
- package/dist/hero.js +17 -25
- package/dist/image.js +23 -25
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/inline.js +10 -11
- package/dist/list.css-mistica.js +12 -9
- package/dist/list.css.d.ts +1 -0
- package/dist/list.js +43 -46
- package/dist/loading-screen.js +16 -16
- package/dist/logo-blau.d.ts +1 -1
- package/dist/logo-blau.js +10 -10
- package/dist/logo-common.d.ts +1 -0
- package/dist/logo-movistar.d.ts +1 -1
- package/dist/logo-movistar.js +4 -4
- package/dist/logo-o2-new.d.ts +1 -1
- package/dist/logo-o2-new.js +5 -5
- package/dist/logo-o2.d.ts +1 -1
- package/dist/logo-o2.js +5 -5
- package/dist/logo-telefonica.d.ts +1 -1
- package/dist/logo-telefonica.js +4 -4
- package/dist/logo-tu.d.ts +1 -1
- package/dist/logo-tu.js +5 -5
- package/dist/logo-vivo.d.ts +1 -1
- package/dist/logo-vivo.js +7 -7
- package/dist/logo.d.ts +9 -8
- package/dist/logo.js +125 -102
- package/dist/navigation-bar.css-mistica.js +23 -20
- package/dist/navigation-bar.css.d.ts +1 -0
- package/dist/navigation-bar.js +30 -37
- package/dist/package-version.js +1 -1
- package/dist/phone-number-field.d.ts +1 -4
- package/dist/phone-number-field.js +52 -82
- package/dist/popover.d.ts +1 -0
- package/dist/popover.js +9 -10
- package/dist/sheet-common.css-mistica.js +5 -5
- package/dist/skeleton-base.js +10 -12
- package/dist/skeletons.css-mistica.js +11 -5
- package/dist/skeletons.css.d.ts +1 -0
- package/dist/snackbar.css-mistica.js +20 -14
- package/dist/snackbar.css.d.ts +3 -1
- package/dist/snackbar.js +65 -75
- package/dist/tag.css-mistica.js +15 -4
- package/dist/tag.css.d.ts +2 -0
- package/dist/tag.js +20 -24
- package/dist/text-field-base.d.ts +1 -1
- package/dist/text-field-components.css-mistica.js +16 -10
- package/dist/text-field-components.css.d.ts +1 -0
- package/dist/text-field-components.js +32 -35
- package/dist/timer.js +42 -43
- package/dist/tooltip.d.ts +3 -1
- package/dist/tooltip.js +106 -106
- package/dist/touchable.js +47 -42
- package/dist-es/accordion.css-mistica.js +3 -3
- package/dist-es/accordion.js +58 -61
- package/dist-es/align.css-mistica.js +3 -0
- package/dist-es/align.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/align.js +70 -0
- package/dist-es/box.css-mistica.js +24 -0
- package/dist-es/box.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/box.js +43 -35
- package/dist-es/boxed.css-mistica.js +5 -3
- package/dist-es/boxed.js +28 -32
- package/dist-es/callout.css-mistica.js +7 -2
- package/dist-es/callout.js +44 -52
- package/dist-es/card.css-mistica.js +4 -4
- package/dist-es/card.js +11 -17
- package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
- package/dist-es/community/advanced-data-card.js +90 -99
- package/dist-es/empty-state.css-mistica.js +3 -3
- package/dist-es/empty-state.js +19 -22
- package/dist-es/form.css-mistica.js +3 -0
- package/dist-es/form.js +12 -14
- package/dist-es/grid.css-mistica.js +123 -112
- package/dist-es/grid.js +38 -41
- package/dist-es/hero.css-mistica.js +2 -2
- package/dist-es/hero.js +36 -44
- package/dist-es/image.js +28 -30
- package/dist-es/index.js +1844 -1843
- package/dist-es/inline.js +19 -20
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/list.js +75 -78
- package/dist-es/loading-screen.js +30 -30
- package/dist-es/logo-blau.js +11 -11
- package/dist-es/logo-movistar.js +5 -5
- package/dist-es/logo-o2-new.js +8 -8
- package/dist-es/logo-o2.js +8 -8
- package/dist-es/logo-telefonica.js +4 -4
- package/dist-es/logo-tu.js +8 -8
- package/dist-es/logo-vivo.js +16 -16
- package/dist-es/logo.js +132 -109
- package/dist-es/navigation-bar.css-mistica.js +11 -11
- package/dist-es/navigation-bar.js +80 -87
- package/dist-es/package-version.js +1 -1
- package/dist-es/phone-number-field.js +59 -89
- package/dist-es/popover.js +17 -18
- package/dist-es/sheet-common.css-mistica.js +2 -2
- package/dist-es/skeleton-base.js +15 -17
- package/dist-es/skeletons.css-mistica.js +5 -2
- package/dist-es/snackbar.css-mistica.js +4 -4
- package/dist-es/snackbar.js +93 -103
- package/dist-es/style.css +1 -1
- package/dist-es/tag.css-mistica.js +2 -2
- package/dist-es/tag.js +34 -38
- package/dist-es/text-field-components.css-mistica.js +5 -2
- package/dist-es/text-field-components.js +48 -51
- package/dist-es/timer.js +80 -81
- package/dist-es/tooltip.js +148 -148
- package/dist-es/touchable.js +55 -50
- package/package.json +1 -1
- package/dist/sprinkles.css-mistica.js +0 -2494
- package/dist-es/sprinkles.css-mistica.js +0 -2485
package/dist/logo.js
CHANGED
|
@@ -11,28 +11,28 @@ function _export(target, all) {
|
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
13
|
BlauLogo: function() {
|
|
14
|
-
return
|
|
14
|
+
return R;
|
|
15
15
|
},
|
|
16
16
|
Logo: function() {
|
|
17
|
-
return
|
|
17
|
+
return E;
|
|
18
18
|
},
|
|
19
19
|
MovistarLogo: function() {
|
|
20
|
-
return
|
|
20
|
+
return F;
|
|
21
21
|
},
|
|
22
22
|
O2Logo: function() {
|
|
23
|
-
return
|
|
23
|
+
return _;
|
|
24
24
|
},
|
|
25
25
|
O2NewLogo: function() {
|
|
26
|
-
return
|
|
26
|
+
return j;
|
|
27
27
|
},
|
|
28
28
|
TelefonicaLogo: function() {
|
|
29
|
-
return
|
|
29
|
+
return G;
|
|
30
30
|
},
|
|
31
31
|
TuLogo: function() {
|
|
32
|
-
return
|
|
32
|
+
return S;
|
|
33
33
|
},
|
|
34
34
|
VivoLogo: function() {
|
|
35
|
-
return
|
|
35
|
+
return H;
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -169,65 +169,72 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
169
169
|
}
|
|
170
170
|
return target;
|
|
171
171
|
}
|
|
172
|
-
const
|
|
173
|
-
let { size: o, skinName:
|
|
174
|
-
const
|
|
175
|
-
switch(
|
|
172
|
+
const i = 48, I = /*#__PURE__*/ _react.lazy(()=>Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require(/* webpackChunkName: "logo-movistar" */ "./logo-movistar.js")))), N = /*#__PURE__*/ _react.lazy(()=>Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require(/* webpackChunkName: "logo-vivo" */ "./logo-vivo.js")))), p = /*#__PURE__*/ _react.lazy(()=>Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require(/* webpackChunkName: "logo-o2" */ "./logo-o2.js")))), k = /*#__PURE__*/ _react.lazy(()=>Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require(/* webpackChunkName: "logo-o2-new" */ "./logo-o2-new.js")))), O = /*#__PURE__*/ _react.lazy(()=>Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require(/* webpackChunkName: "logo-telefonica" */ "./logo-telefonica.js")))), V = /*#__PURE__*/ _react.lazy(()=>Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require(/* webpackChunkName: "logo-blau" */ "./logo-blau.js")))), b = /*#__PURE__*/ _react.lazy(()=>Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require(/* webpackChunkName: "logo-tu" */ "./logo-tu.js")))), c = (param)=>{
|
|
173
|
+
let { size: o, skinName: n, type: t = "isotype", color: a } = param;
|
|
174
|
+
const r = (0, _themevariantcontext.useIsInverseOrMediaVariant)(), { isDarkMode: l } = (0, _hooks.useTheme)();
|
|
175
|
+
switch(n){
|
|
176
176
|
case "Movistar":
|
|
177
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
177
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(I, {
|
|
178
178
|
size: o,
|
|
179
179
|
type: t,
|
|
180
|
-
isDarkMode:
|
|
181
|
-
isInverse:
|
|
180
|
+
isDarkMode: l,
|
|
181
|
+
isInverse: r,
|
|
182
|
+
color: a
|
|
182
183
|
});
|
|
183
184
|
case "Vivo":
|
|
184
185
|
case "Vivo-new":
|
|
185
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
186
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(N, {
|
|
186
187
|
size: o,
|
|
187
188
|
type: t,
|
|
188
|
-
isDarkMode:
|
|
189
|
-
isInverse:
|
|
189
|
+
isDarkMode: l,
|
|
190
|
+
isInverse: r,
|
|
191
|
+
color: a
|
|
190
192
|
});
|
|
191
193
|
case "O2":
|
|
192
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
194
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(p, {
|
|
193
195
|
size: o,
|
|
194
196
|
type: t,
|
|
195
|
-
isDarkMode:
|
|
196
|
-
isInverse:
|
|
197
|
+
isDarkMode: l,
|
|
198
|
+
isInverse: r,
|
|
199
|
+
color: a
|
|
197
200
|
});
|
|
198
201
|
case "O2-new":
|
|
199
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
202
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(k, {
|
|
200
203
|
size: o,
|
|
201
204
|
type: t,
|
|
202
|
-
isDarkMode:
|
|
203
|
-
isInverse:
|
|
205
|
+
isDarkMode: l,
|
|
206
|
+
isInverse: r,
|
|
207
|
+
color: a
|
|
204
208
|
});
|
|
205
209
|
case "Telefonica":
|
|
206
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
210
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(O, {
|
|
207
211
|
size: o,
|
|
208
212
|
type: t,
|
|
209
|
-
isDarkMode:
|
|
210
|
-
isInverse:
|
|
213
|
+
isDarkMode: l,
|
|
214
|
+
isInverse: r,
|
|
215
|
+
color: a
|
|
211
216
|
});
|
|
212
217
|
case "Blau":
|
|
213
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
218
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(V, {
|
|
214
219
|
size: o,
|
|
215
220
|
type: t,
|
|
216
|
-
isDarkMode:
|
|
217
|
-
isInverse:
|
|
221
|
+
isDarkMode: l,
|
|
222
|
+
isInverse: r,
|
|
223
|
+
color: a
|
|
218
224
|
});
|
|
219
225
|
case "Tu":
|
|
220
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
226
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(b, {
|
|
221
227
|
size: o,
|
|
222
228
|
type: t,
|
|
223
|
-
isDarkMode:
|
|
224
|
-
isInverse:
|
|
229
|
+
isDarkMode: l,
|
|
230
|
+
isInverse: r,
|
|
231
|
+
color: a
|
|
225
232
|
});
|
|
226
233
|
default:
|
|
227
234
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {});
|
|
228
235
|
}
|
|
229
|
-
},
|
|
230
|
-
const
|
|
236
|
+
}, m = (o)=>{
|
|
237
|
+
const n = (0, _dom.getPrefixedDataAttributes)(o.dataAttributes, "Logo");
|
|
231
238
|
return o.to || o.href || o.onPress ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.default, _object_spread({}, o)) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_react.Suspense, {
|
|
232
239
|
fallback: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
233
240
|
className: _logocssmistica.svg,
|
|
@@ -237,121 +244,137 @@ const s = 48, T = /*#__PURE__*/ _react.lazy(()=>Promise.resolve().then(()=>/*#__
|
|
|
237
244
|
}),
|
|
238
245
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
|
|
239
246
|
className: _logocssmistica.logoContainer
|
|
240
|
-
},
|
|
247
|
+
}, n), {
|
|
241
248
|
children: o.children
|
|
242
249
|
}))
|
|
243
250
|
});
|
|
244
|
-
},
|
|
245
|
-
var { size: o =
|
|
251
|
+
}, E = (_param)=>{
|
|
252
|
+
var { size: o = i, type: n = "isotype", color: t } = _param, a = _object_without_properties(_param, [
|
|
246
253
|
"size",
|
|
247
|
-
"type"
|
|
254
|
+
"type",
|
|
255
|
+
"color"
|
|
248
256
|
]);
|
|
249
|
-
const { skinName:
|
|
250
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
257
|
+
const { skinName: r } = (0, _hooks.useTheme)();
|
|
258
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, _object_spread_props(_object_spread({
|
|
251
259
|
size: o
|
|
252
|
-
},
|
|
253
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
254
|
-
skinName:
|
|
255
|
-
type:
|
|
256
|
-
size: o
|
|
260
|
+
}, a), {
|
|
261
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(c, {
|
|
262
|
+
skinName: r,
|
|
263
|
+
type: n,
|
|
264
|
+
size: o,
|
|
265
|
+
color: t
|
|
257
266
|
})
|
|
258
267
|
}));
|
|
259
|
-
},
|
|
260
|
-
var { size: o =
|
|
268
|
+
}, F = (_param)=>{
|
|
269
|
+
var { size: o = i, type: n = "isotype", color: t } = _param, a = _object_without_properties(_param, [
|
|
261
270
|
"size",
|
|
262
|
-
"type"
|
|
271
|
+
"type",
|
|
272
|
+
"color"
|
|
263
273
|
]);
|
|
264
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
274
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, _object_spread_props(_object_spread({
|
|
265
275
|
size: o
|
|
266
|
-
},
|
|
267
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
276
|
+
}, a), {
|
|
277
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(c, {
|
|
268
278
|
skinName: "Movistar",
|
|
269
|
-
type:
|
|
270
|
-
size: o
|
|
279
|
+
type: n,
|
|
280
|
+
size: o,
|
|
281
|
+
color: t
|
|
271
282
|
})
|
|
272
283
|
}));
|
|
273
|
-
},
|
|
274
|
-
var { size: o =
|
|
284
|
+
}, H = (_param)=>{
|
|
285
|
+
var { size: o = i, type: n = "isotype", color: t } = _param, a = _object_without_properties(_param, [
|
|
275
286
|
"size",
|
|
276
|
-
"type"
|
|
287
|
+
"type",
|
|
288
|
+
"color"
|
|
277
289
|
]);
|
|
278
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
290
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, _object_spread_props(_object_spread({
|
|
279
291
|
size: o
|
|
280
|
-
},
|
|
281
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
292
|
+
}, a), {
|
|
293
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(c, {
|
|
282
294
|
skinName: "Vivo",
|
|
283
|
-
type:
|
|
284
|
-
size: o
|
|
295
|
+
type: n,
|
|
296
|
+
size: o,
|
|
297
|
+
color: t
|
|
285
298
|
})
|
|
286
299
|
}));
|
|
287
|
-
},
|
|
288
|
-
var { size: o =
|
|
300
|
+
}, _ = (_param)=>{
|
|
301
|
+
var { size: o = i, type: n = "isotype", color: t } = _param, a = _object_without_properties(_param, [
|
|
289
302
|
"size",
|
|
290
|
-
"type"
|
|
303
|
+
"type",
|
|
304
|
+
"color"
|
|
291
305
|
]);
|
|
292
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
306
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, _object_spread_props(_object_spread({
|
|
293
307
|
size: o
|
|
294
|
-
},
|
|
295
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
308
|
+
}, a), {
|
|
309
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(c, {
|
|
296
310
|
skinName: "O2",
|
|
297
|
-
type:
|
|
298
|
-
size: o
|
|
311
|
+
type: n,
|
|
312
|
+
size: o,
|
|
313
|
+
color: t
|
|
299
314
|
})
|
|
300
315
|
}));
|
|
301
|
-
},
|
|
302
|
-
var { size: o =
|
|
316
|
+
}, j = (_param)=>{
|
|
317
|
+
var { size: o = i, type: n = "isotype", color: t } = _param, a = _object_without_properties(_param, [
|
|
303
318
|
"size",
|
|
304
|
-
"type"
|
|
319
|
+
"type",
|
|
320
|
+
"color"
|
|
305
321
|
]);
|
|
306
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
322
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, _object_spread_props(_object_spread({
|
|
307
323
|
size: o
|
|
308
|
-
},
|
|
309
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
324
|
+
}, a), {
|
|
325
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(c, {
|
|
310
326
|
skinName: "O2-new",
|
|
311
|
-
type:
|
|
312
|
-
size: o
|
|
327
|
+
type: n,
|
|
328
|
+
size: o,
|
|
329
|
+
color: t
|
|
313
330
|
})
|
|
314
331
|
}));
|
|
315
|
-
},
|
|
316
|
-
var { size: o =
|
|
332
|
+
}, G = (_param)=>{
|
|
333
|
+
var { size: o = i, type: n = "isotype", color: t } = _param, a = _object_without_properties(_param, [
|
|
317
334
|
"size",
|
|
318
|
-
"type"
|
|
335
|
+
"type",
|
|
336
|
+
"color"
|
|
319
337
|
]);
|
|
320
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
338
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, _object_spread_props(_object_spread({
|
|
321
339
|
size: o
|
|
322
|
-
},
|
|
323
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
340
|
+
}, a), {
|
|
341
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(c, {
|
|
324
342
|
skinName: "Telefonica",
|
|
325
|
-
type:
|
|
326
|
-
size: o
|
|
343
|
+
type: n,
|
|
344
|
+
size: o,
|
|
345
|
+
color: t
|
|
327
346
|
})
|
|
328
347
|
}));
|
|
329
|
-
},
|
|
330
|
-
var { size: o =
|
|
348
|
+
}, R = (_param)=>{
|
|
349
|
+
var { size: o = i, type: n = "isotype", color: t } = _param, a = _object_without_properties(_param, [
|
|
331
350
|
"size",
|
|
332
|
-
"type"
|
|
351
|
+
"type",
|
|
352
|
+
"color"
|
|
333
353
|
]);
|
|
334
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
354
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, _object_spread_props(_object_spread({
|
|
335
355
|
size: o
|
|
336
|
-
},
|
|
337
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
356
|
+
}, a), {
|
|
357
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(c, {
|
|
338
358
|
skinName: "Blau",
|
|
339
|
-
type:
|
|
340
|
-
size: o
|
|
359
|
+
type: n,
|
|
360
|
+
size: o,
|
|
361
|
+
color: t
|
|
341
362
|
})
|
|
342
363
|
}));
|
|
343
|
-
},
|
|
344
|
-
var { size: o =
|
|
364
|
+
}, S = (_param)=>{
|
|
365
|
+
var { size: o = i, type: n = "isotype", color: t } = _param, a = _object_without_properties(_param, [
|
|
345
366
|
"size",
|
|
346
|
-
"type"
|
|
367
|
+
"type",
|
|
368
|
+
"color"
|
|
347
369
|
]);
|
|
348
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
370
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, _object_spread_props(_object_spread({
|
|
349
371
|
size: o
|
|
350
|
-
},
|
|
351
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
372
|
+
}, a), {
|
|
373
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(c, {
|
|
352
374
|
skinName: "Tu",
|
|
353
|
-
type:
|
|
354
|
-
size: o
|
|
375
|
+
type: n,
|
|
376
|
+
size: o,
|
|
377
|
+
color: t
|
|
355
378
|
})
|
|
356
379
|
}));
|
|
357
380
|
};
|
|
@@ -16,10 +16,10 @@ _export(exports, {
|
|
|
16
16
|
return _;
|
|
17
17
|
},
|
|
18
18
|
burgerMenuButton: function() {
|
|
19
|
-
return
|
|
19
|
+
return r;
|
|
20
20
|
},
|
|
21
21
|
burgerMenuTransition: function() {
|
|
22
|
-
return
|
|
22
|
+
return e;
|
|
23
23
|
},
|
|
24
24
|
desktopOnly: function() {
|
|
25
25
|
return d;
|
|
@@ -34,10 +34,10 @@ _export(exports, {
|
|
|
34
34
|
return f;
|
|
35
35
|
},
|
|
36
36
|
iconMenuOpen: function() {
|
|
37
|
-
return
|
|
37
|
+
return i;
|
|
38
38
|
},
|
|
39
39
|
lineHeightFix: function() {
|
|
40
|
-
return
|
|
40
|
+
return z;
|
|
41
41
|
},
|
|
42
42
|
logoContainer: function() {
|
|
43
43
|
return t;
|
|
@@ -48,47 +48,50 @@ _export(exports, {
|
|
|
48
48
|
navbarBorderColorVariants: function() {
|
|
49
49
|
return h;
|
|
50
50
|
},
|
|
51
|
-
|
|
51
|
+
navigationBarAction: function() {
|
|
52
52
|
return l;
|
|
53
53
|
},
|
|
54
|
+
navigationBarContent: function() {
|
|
55
|
+
return g;
|
|
56
|
+
},
|
|
54
57
|
navigationBarContentRight: function() {
|
|
55
58
|
return u;
|
|
56
59
|
},
|
|
57
60
|
section: function() {
|
|
58
|
-
return
|
|
61
|
+
return p;
|
|
59
62
|
},
|
|
60
63
|
selectedSectionVariantes: function() {
|
|
61
64
|
return s;
|
|
62
65
|
},
|
|
63
66
|
spacer: function() {
|
|
64
|
-
return
|
|
67
|
+
return b;
|
|
65
68
|
},
|
|
66
69
|
spacerLarge: function() {
|
|
67
|
-
return
|
|
70
|
+
return k;
|
|
68
71
|
},
|
|
69
72
|
textWrapperVariants: function() {
|
|
70
|
-
return
|
|
73
|
+
return C;
|
|
71
74
|
},
|
|
72
75
|
topFixed: function() {
|
|
73
|
-
return
|
|
76
|
+
return x;
|
|
74
77
|
}
|
|
75
78
|
});
|
|
76
79
|
require("./sprinkles.css.ts.vanilla.css-mistica.js");
|
|
77
80
|
require("./navigation-bar.css.ts.vanilla.css-mistica.js");
|
|
78
|
-
var y = "_1vcy5dz1 _1y2v1nfhe _1y2v1nfig _1y2v1nfiw", _ = "
|
|
79
|
-
entering: "
|
|
80
|
-
entered: "
|
|
81
|
-
exiting: "
|
|
82
|
-
exited: "
|
|
83
|
-
unmounted: "
|
|
84
|
-
}, d = "
|
|
81
|
+
var y = "_1vcy5dz1 _1y2v1nfhe _1y2v1nfig _1y2v1nfiw", _ = "_1vcy5dz13 _1y2v1nfhg _1y2v1nfl2 _1y2v1nfl6 _1y2v1nfll _1y2v1nf3p", r = "_1vcy5dz11", e = {
|
|
82
|
+
entering: "_1vcy5dzt",
|
|
83
|
+
entered: "_1vcy5dzu",
|
|
84
|
+
exiting: "_1vcy5dzv",
|
|
85
|
+
exited: "_1vcy5dzw",
|
|
86
|
+
unmounted: "_1vcy5dzx"
|
|
87
|
+
}, d = "_1vcy5dzn", a = "_1vcy5dz5 _1vcy5dz3 _1y2v1nfhf", c = "_1vcy5dz4 _1vcy5dz3 _1y2v1nfhf", f = "_1vcy5dz7 _1vcy5dz3 _1y2v1nfhf", i = "_1vcy5dz6 _1vcy5dz3 _1y2v1nfhf", z = "_1vcy5dz18", t = "_1vcy5dz10 _1y2v1nfhk _1y2v1nfht", o = "_1vcy5dzy", h = {
|
|
85
88
|
default: "_1vcy5dzc _1vcy5dzb _1y2v1nfhk _1y2v1nfhz _1y2v1nfi7",
|
|
86
89
|
noBorder: "_1vcy5dzd _1vcy5dzb _1y2v1nfhk _1y2v1nfhz _1y2v1nfi7",
|
|
87
90
|
menuOpen: "_1vcy5dze _1vcy5dzb _1y2v1nfhk _1y2v1nfhz _1y2v1nfi7"
|
|
88
|
-
}, l = "_1vcy5dzl", u = "
|
|
91
|
+
}, l = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfk2 _1y2v1nf7c", g = "_1vcy5dzl", u = "_1vcy5dzo", p = "_1vcy5dzg _1y2v1nfa4 _1y2v1nfbd _1y2v1nfj3 _1y2v1nfhk _1y2v1nfhz _1y2v1nfk2 _1y2v1nf7c", s = {
|
|
89
92
|
default: "_1vcy5dzh",
|
|
90
93
|
inverse: "_1vcy5dzi"
|
|
91
|
-
},
|
|
94
|
+
}, b = "_1y2v1nfj3 _1vcy5dzp", k = "_1vcy5dzs _1vcy5dzp", C = {
|
|
92
95
|
default: "_1vcy5dzj",
|
|
93
96
|
inverse: "_1vcy5dzk"
|
|
94
|
-
},
|
|
97
|
+
}, x = "_1vcy5dz9 _1y2v1nfhg _1y2v1nfkr _1y2v1nfl6 _1y2v1nfll";
|
|
@@ -9,6 +9,7 @@ export declare const section: string;
|
|
|
9
9
|
export declare const selectedSectionVariantes: Record<"inverse" | "default", string>;
|
|
10
10
|
export declare const textWrapperVariants: Record<"inverse" | "default", string>;
|
|
11
11
|
export declare const navigationBarContent: string;
|
|
12
|
+
export declare const navigationBarAction: string;
|
|
12
13
|
export declare const desktopOnly: string;
|
|
13
14
|
export declare const navigationBarContentRight: string;
|
|
14
15
|
export declare const spacer: string;
|
package/dist/navigation-bar.js
CHANGED
|
@@ -11,10 +11,10 @@ function _export(target, all) {
|
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
13
|
FunnelNavigationBar: function() {
|
|
14
|
-
return
|
|
14
|
+
return fn;
|
|
15
15
|
},
|
|
16
16
|
MainNavigationBar: function() {
|
|
17
|
-
return
|
|
17
|
+
return hn;
|
|
18
18
|
},
|
|
19
19
|
NavigationBar: function() {
|
|
20
20
|
return vn;
|
|
@@ -23,7 +23,7 @@ _export(exports, {
|
|
|
23
23
|
return Bn;
|
|
24
24
|
},
|
|
25
25
|
NavigationBarActionGroup: function() {
|
|
26
|
-
return
|
|
26
|
+
return Nn;
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -49,7 +49,6 @@ const _modalcontextprovider = require("./modal-context-provider.js");
|
|
|
49
49
|
const _logo = require("./logo.js");
|
|
50
50
|
const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
|
|
51
51
|
const _navigationbarcssmistica = require("./navigation-bar.css-mistica.js");
|
|
52
|
-
const _sprinklescssmistica = require("./sprinkles.css-mistica.js");
|
|
53
52
|
const _dom = require("./utils/dom.js");
|
|
54
53
|
const _stack = /*#__PURE__*/ _interop_require_default(require("./stack.js"));
|
|
55
54
|
const _box = /*#__PURE__*/ _interop_require_default(require("./box.js"));
|
|
@@ -215,7 +214,7 @@ const Ge = (param)=>{
|
|
|
215
214
|
}, (0, _dom.getPrefixedDataAttributes)(s)), {
|
|
216
215
|
children: n
|
|
217
216
|
}));
|
|
218
|
-
},
|
|
217
|
+
}, b = (param)=>{
|
|
219
218
|
let { right: n, children: o, desktopOnly: t } = param;
|
|
220
219
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
221
220
|
className: (0, _classnames.default)(_navigationbarcssmistica.navigationBarContent, {
|
|
@@ -229,9 +228,9 @@ const Ge = (param)=>{
|
|
|
229
228
|
})
|
|
230
229
|
]
|
|
231
230
|
});
|
|
232
|
-
},
|
|
231
|
+
}, hn = (param)=>{
|
|
233
232
|
let { sections: n = [], selectedIndex: o, right: t, variant: r = "default", topFixed: a = !0, withBorder: s = !0, burgerMenuExtra: c, logo: d, large: m = !1 } = param;
|
|
234
|
-
const { texts: u, isDarkMode: g, t: R } = (0, _hooks.useTheme)(), [l, y] = _react.useState(!1), [E, h] = _react.useState("closed"), L = _react.useId(),
|
|
233
|
+
const { texts: u, isDarkMode: g, t: R } = (0, _hooks.useTheme)(), [l, y] = _react.useState(!1), [E, h] = _react.useState("closed"), L = _react.useId(), J = g ? 1 : 0.2, { isTabletOrSmaller: K } = (0, _hooks.useScreenSize)(), w = (0, _modalcontextprovider.useSetModalState)(), Q = d || /* @__PURE__ */ (0, _jsxruntime.jsx)(_logo.Logo, {
|
|
235
234
|
size: {
|
|
236
235
|
mobile: 40,
|
|
237
236
|
desktop: 48
|
|
@@ -240,23 +239,23 @@ const Ge = (param)=>{
|
|
|
240
239
|
className: _navigationbarcssmistica.desktopOnly,
|
|
241
240
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_inline.default, {
|
|
242
241
|
space: 32,
|
|
243
|
-
children: n.map((_param,
|
|
244
|
-
var { title:
|
|
242
|
+
children: n.map((_param, v)=>{
|
|
243
|
+
var { title: k } = _param, x = _object_without_properties(_param, [
|
|
245
244
|
"title"
|
|
246
245
|
]);
|
|
247
246
|
return /* @__PURE__ */ /*#__PURE__*/ (0, _react.createElement)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, x), {
|
|
248
|
-
key:
|
|
247
|
+
key: v,
|
|
249
248
|
className: (0, _classnames.default)(_navigationbarcssmistica.section, {
|
|
250
|
-
[_navigationbarcssmistica.selectedSectionVariantes[r === "inverse" ? "inverse" : "default"]]:
|
|
249
|
+
[_navigationbarcssmistica.selectedSectionVariantes[r === "inverse" ? "inverse" : "default"]]: v === o
|
|
251
250
|
}, _navigationbarcssmistica.textWrapperVariants[r === "inverse" ? "inverse" : "default"])
|
|
252
251
|
}), /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
|
|
253
252
|
regular: !0,
|
|
254
253
|
color: "inherit",
|
|
255
|
-
children:
|
|
254
|
+
children: k
|
|
256
255
|
}));
|
|
257
256
|
})
|
|
258
257
|
})
|
|
259
|
-
}),
|
|
258
|
+
}), I = m && n.length > 0, X = ()=>{
|
|
260
259
|
y(!0), w({
|
|
261
260
|
isModalOpen: !0
|
|
262
261
|
});
|
|
@@ -277,7 +276,7 @@ const Ge = (param)=>{
|
|
|
277
276
|
},
|
|
278
277
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_responsivelayout.default, {
|
|
279
278
|
children: [
|
|
280
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
279
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(b, {
|
|
281
280
|
right: t,
|
|
282
281
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
283
282
|
className: _navigationbarcssmistica.mainNavbarContent,
|
|
@@ -288,20 +287,20 @@ const Ge = (param)=>{
|
|
|
288
287
|
"aria-label": l ? u.closeNavigationMenu || R(_texttokens.closeNavigationMenu) : u.openNavigationMenu || R(_texttokens.openNavigationMenu),
|
|
289
288
|
"aria-expanded": l,
|
|
290
289
|
"aria-controls": L,
|
|
291
|
-
onPress: l ? V :
|
|
290
|
+
onPress: l ? V : X,
|
|
292
291
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Ge, {
|
|
293
292
|
isOpen: l
|
|
294
293
|
})
|
|
295
294
|
}),
|
|
296
295
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
297
296
|
className: _navigationbarcssmistica.logoContainer,
|
|
298
|
-
children:
|
|
297
|
+
children: Q
|
|
299
298
|
}),
|
|
300
|
-
!
|
|
299
|
+
!I && D()
|
|
301
300
|
]
|
|
302
301
|
})
|
|
303
302
|
}),
|
|
304
|
-
|
|
303
|
+
I && /* @__PURE__ */ (0, _jsxruntime.jsx)(b, {
|
|
305
304
|
desktopOnly: !0,
|
|
306
305
|
children: D()
|
|
307
306
|
})
|
|
@@ -309,11 +308,11 @@ const Ge = (param)=>{
|
|
|
309
308
|
})
|
|
310
309
|
}),
|
|
311
310
|
a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
312
|
-
className:
|
|
311
|
+
className: I ? _navigationbarcssmistica.spacerLarge : _navigationbarcssmistica.spacer
|
|
313
312
|
})
|
|
314
313
|
]
|
|
315
314
|
});
|
|
316
|
-
return
|
|
315
|
+
return K ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
317
316
|
children: [
|
|
318
317
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_focustrap.default, {
|
|
319
318
|
disabled: F,
|
|
@@ -340,11 +339,11 @@ const Ge = (param)=>{
|
|
|
340
339
|
in: l,
|
|
341
340
|
timeout: (0, _platform.isRunningAcceptanceTest)() ? 0 : He,
|
|
342
341
|
unmountOnExit: !0,
|
|
343
|
-
children: (
|
|
342
|
+
children: (k)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
|
|
344
343
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("nav", {
|
|
345
|
-
className: (0, _classnames.default)(_navigationbarcssmistica.burgerMenu, _navigationbarcssmistica.burgerMenuTransition[
|
|
344
|
+
className: (0, _classnames.default)(_navigationbarcssmistica.burgerMenu, _navigationbarcssmistica.burgerMenuTransition[k]),
|
|
346
345
|
style: {
|
|
347
|
-
boxShadow: E !== "closed" ? `6px 0 4px -4px rgba(0, 0, 0, ${
|
|
346
|
+
boxShadow: E !== "closed" ? `6px 0 4px -4px rgba(0, 0, 0, ${J})` : "none"
|
|
348
347
|
},
|
|
349
348
|
id: L,
|
|
350
349
|
onClick: ()=>{
|
|
@@ -356,7 +355,7 @@ const Ge = (param)=>{
|
|
|
356
355
|
children: [
|
|
357
356
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_negativebox.default, {
|
|
358
357
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_list.RowList, {
|
|
359
|
-
children: n.map((x,
|
|
358
|
+
children: n.map((x, v)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_list.Row, _object_spread({}, x), v))
|
|
360
359
|
})
|
|
361
360
|
}),
|
|
362
361
|
c && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
@@ -375,7 +374,7 @@ const Ge = (param)=>{
|
|
|
375
374
|
}) : H;
|
|
376
375
|
}, vn = (param)=>{
|
|
377
376
|
let { onBack: n, title: o, titleAs: t, right: r, variant: a = "default", topFixed: s = !0, paddingX: c = 0, withBorder: d = !0 } = param;
|
|
378
|
-
const { texts: m, t: u } = (0, _hooks.useTheme)(), g = /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
377
|
+
const { texts: m, t: u } = (0, _hooks.useTheme)(), g = /* @__PURE__ */ (0, _jsxruntime.jsx)(b, {
|
|
379
378
|
right: r,
|
|
380
379
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
381
380
|
space: 24,
|
|
@@ -410,11 +409,9 @@ const Ge = (param)=>{
|
|
|
410
409
|
children: s ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.default, {
|
|
411
410
|
children: g
|
|
412
411
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
413
|
-
className: (0, _sprinklescssmistica.sprinkles)({
|
|
414
|
-
width: "100%"
|
|
415
|
-
}),
|
|
416
412
|
style: {
|
|
417
|
-
padding: `0 ${c}px
|
|
413
|
+
padding: `0 ${c}px`,
|
|
414
|
+
width: "100%"
|
|
418
415
|
},
|
|
419
416
|
children: g
|
|
420
417
|
})
|
|
@@ -424,7 +421,7 @@ const Ge = (param)=>{
|
|
|
424
421
|
})
|
|
425
422
|
]
|
|
426
423
|
});
|
|
427
|
-
},
|
|
424
|
+
}, fn = (param)=>{
|
|
428
425
|
let { logo: n, right: o, variant: t = "default", topFixed: r = !0, withBorder: a = !0 } = param;
|
|
429
426
|
return n = n !== null && n !== void 0 ? n : /* @__PURE__ */ (0, _jsxruntime.jsx)(_logo.Logo, {
|
|
430
427
|
size: {
|
|
@@ -444,7 +441,7 @@ const Ge = (param)=>{
|
|
|
444
441
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.default, {
|
|
445
442
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_gridlayout.default, {
|
|
446
443
|
template: "10",
|
|
447
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
444
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(b, {
|
|
448
445
|
right: o,
|
|
449
446
|
children: n
|
|
450
447
|
})
|
|
@@ -456,7 +453,7 @@ const Ge = (param)=>{
|
|
|
456
453
|
})
|
|
457
454
|
]
|
|
458
455
|
});
|
|
459
|
-
},
|
|
456
|
+
}, Nn = (param)=>{
|
|
460
457
|
let { children: n } = param;
|
|
461
458
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
462
459
|
className: _navigationbarcssmistica.lineHeightFix,
|
|
@@ -473,11 +470,7 @@ const Ge = (param)=>{
|
|
|
473
470
|
]);
|
|
474
471
|
const t = (0, _themevariantcontext.useIsInverseOrMediaVariant)();
|
|
475
472
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, o), {
|
|
476
|
-
className: (0, _classnames.default)(
|
|
477
|
-
border: "none",
|
|
478
|
-
background: "transparent",
|
|
479
|
-
padding: 0
|
|
480
|
-
}), _navigationbarcssmistica.lineHeightFix, _navigationbarcssmistica.textWrapperVariants[t ? "inverse" : "default"]),
|
|
473
|
+
className: (0, _classnames.default)(_navigationbarcssmistica.navigationBarAction, _navigationbarcssmistica.lineHeightFix, _navigationbarcssmistica.textWrapperVariants[t ? "inverse" : "default"]),
|
|
481
474
|
dataAttributes: {
|
|
482
475
|
"component-name": "NavigationBarAction"
|
|
483
476
|
},
|