@telefonica/mistica 14.37.0 → 14.39.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/carousel.js +46 -43
- package/dist/chip.js +51 -34
- package/dist/empty-state-card.js +24 -18
- package/dist/image.css-mistica.js +7 -4
- package/dist/image.css.d.ts +1 -0
- package/dist/image.js +69 -58
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -0
- package/dist/inline.css-mistica.js +14 -12
- package/dist/inline.css.d.ts +5 -1
- package/dist/inline.d.ts +4 -2
- package/dist/inline.js +31 -16
- package/dist/loading-bar.css-mistica.js +6 -18
- package/dist/loading-bar.css.d.ts +1 -4
- package/dist/loading-bar.js +22 -27
- package/dist/loading-screen.css-mistica.js +51 -0
- package/dist/loading-screen.css.d.ts +11 -0
- package/dist/loading-screen.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/loading-screen.d.ts +28 -0
- package/dist/loading-screen.js +398 -0
- package/dist/logo.css-mistica.js +21 -5
- package/dist/logo.css.d.ts +7 -0
- package/dist/logo.d.ts +2 -2
- package/dist/logo.js +86 -61
- package/dist/navigation-bar.css-mistica.js +43 -37
- package/dist/navigation-bar.css.d.ts +3 -1
- package/dist/navigation-bar.js +165 -209
- package/dist/package-version.js +1 -1
- package/dist/tabs.css.d.ts +1 -1
- package/dist/vivinho-loading-animation/in-lottie.json.js +1479 -0
- package/dist/vivinho-loading-animation/index.d.ts +8 -0
- package/dist/vivinho-loading-animation/index.js +119 -0
- package/dist/vivinho-loading-animation/out-lottie.json.js +2143 -0
- package/dist/vivinho-loading-animation/pulse-lottie.json.js +2017 -0
- package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +20 -0
- package/dist/vivinho-loading-animation/vivinho-loading-animation.css.d.ts +2 -0
- package/dist/vivinho-loading-animation/vivinho-loading-animation.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/vivinho-loading-animation/wave-lottie.json.js +10207 -0
- package/dist-es/carousel.js +46 -43
- package/dist-es/chip.js +78 -61
- package/dist-es/empty-state-card.js +41 -35
- package/dist-es/image.css-mistica.js +2 -2
- package/dist-es/image.js +86 -76
- package/dist-es/index.js +1782 -1781
- package/dist-es/inline.css-mistica.js +7 -8
- package/dist-es/inline.js +39 -24
- package/dist-es/loading-bar.css-mistica.js +2 -2
- package/dist-es/loading-bar.js +22 -32
- package/dist-es/loading-screen.css-mistica.js +7 -0
- package/dist-es/loading-screen.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/loading-screen.js +335 -0
- package/dist-es/logo.css-mistica.js +7 -2
- package/dist-es/logo.js +110 -85
- package/dist-es/navigation-bar.css-mistica.js +19 -19
- package/dist-es/navigation-bar.js +219 -263
- package/dist-es/package-version.js +1 -1
- package/dist-es/style.css +1 -1
- package/dist-es/vivinho-loading-animation/in-lottie.json.js +1426 -0
- package/dist-es/vivinho-loading-animation/index.js +64 -0
- package/dist-es/vivinho-loading-animation/out-lottie.json.js +2090 -0
- package/dist-es/vivinho-loading-animation/pulse-lottie.json.js +1964 -0
- package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +3 -0
- package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/vivinho-loading-animation/wave-lottie.json.js +10154 -0
- package/package.json +2 -1
|
@@ -78,381 +78,337 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
78
78
|
}
|
|
79
79
|
return target;
|
|
80
80
|
}
|
|
81
|
-
import { jsxs as i,
|
|
82
|
-
import * as
|
|
81
|
+
import { jsxs as i, jsx as e, Fragment as F } from "react/jsx-runtime";
|
|
82
|
+
import * as k from "react";
|
|
83
83
|
import { createElement as Y } from "react";
|
|
84
84
|
import { Transition as Z } from "react-transition-group";
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import { BaseTouchable as
|
|
89
|
-
import { Text3 as
|
|
90
|
-
import { useTheme as
|
|
91
|
-
import
|
|
92
|
-
import
|
|
93
|
-
import
|
|
94
|
-
import
|
|
95
|
-
import
|
|
96
|
-
import { RowList as
|
|
97
|
-
import { ThemeVariant as
|
|
98
|
-
import
|
|
99
|
-
import { Portal as
|
|
100
|
-
import
|
|
101
|
-
import { useSetModalState as
|
|
102
|
-
import { Logo as
|
|
85
|
+
import u from "classnames";
|
|
86
|
+
import g from "./responsive-layout.js";
|
|
87
|
+
import v from "./inline.js";
|
|
88
|
+
import { BaseTouchable as P } from "./touchable.js";
|
|
89
|
+
import { Text3 as _, Text2 as ee } from "./text.js";
|
|
90
|
+
import { useTheme as x, useAriaId as ne, useScreenSize as re } from "./hooks.js";
|
|
91
|
+
import te from "./generated/mistica-icons/icon-menu-regular.js";
|
|
92
|
+
import ae from "./generated/mistica-icons/icon-close-regular.js";
|
|
93
|
+
import oe from "./generated/mistica-icons/icon-chevron-left-regular.js";
|
|
94
|
+
import z from "./icon-button.js";
|
|
95
|
+
import ie from "./negative-box.js";
|
|
96
|
+
import { RowList as se, Row as ce } from "./list.js";
|
|
97
|
+
import { ThemeVariant as C, useIsInverseVariant as le } from "./theme-variant-context.js";
|
|
98
|
+
import G from "./focus-trap.js";
|
|
99
|
+
import { Portal as de } from "./portal.js";
|
|
100
|
+
import me from "./grid-layout.js";
|
|
101
|
+
import { useSetModalState as ue } from "./modal-context-provider.js";
|
|
102
|
+
import { Logo as U } from "./logo.js";
|
|
103
103
|
import { vars as H } from "./skins/skin-contract.css-mistica.js";
|
|
104
|
-
import { logoContainer as
|
|
105
|
-
import { sprinkles as
|
|
106
|
-
import { getPrefixedDataAttributes as
|
|
107
|
-
import
|
|
108
|
-
import
|
|
109
|
-
import { isRunningAcceptanceTest as
|
|
110
|
-
const
|
|
104
|
+
import { mainNavbarContent as pe, burgerMenuButton as he, logoContainer as ge, spacerLarge as fe, spacer as S, burgerMenu as ve, burgerMenuTransition as Ne, iconButtonVariants as Be, lineHeightFix as j, textWrapperVariants as $, burgerIconContainer as be, iconCloseOpen as Me, iconCloseHidden as ke, iconMenuHidden as xe, iconMenuOpen as Ce, topFixed as Se, navigationBarContent as Ae, desktopOnly as W, navigationBarContentRight as Te, section as Oe, selectedSectionVariantes as Ie, navbarBorderColorVariants as M } from "./navigation-bar.css-mistica.js";
|
|
105
|
+
import { sprinkles as q } from "./sprinkles.css-mistica.js";
|
|
106
|
+
import { getPrefixedDataAttributes as Re } from "./utils/dom.js";
|
|
107
|
+
import ye from "./stack.js";
|
|
108
|
+
import Ee from "./box.js";
|
|
109
|
+
import { isRunningAcceptanceTest as we } from "./utils/platform.js";
|
|
110
|
+
const Le = (param)=>/* @__PURE__ */ {
|
|
111
111
|
let { isOpen: n } = param;
|
|
112
112
|
return i("div", {
|
|
113
|
-
className:
|
|
113
|
+
className: be,
|
|
114
114
|
role: "presentation",
|
|
115
115
|
"data-component-name": "BurgerMenuIcon",
|
|
116
116
|
children: [
|
|
117
117
|
/* @__PURE__ */ e("div", {
|
|
118
|
-
className: n ?
|
|
119
|
-
children: /* @__PURE__ */ e(
|
|
118
|
+
className: n ? Me : ke,
|
|
119
|
+
children: /* @__PURE__ */ e(ae, {})
|
|
120
120
|
}),
|
|
121
121
|
/* @__PURE__ */ e("div", {
|
|
122
|
-
className: n ?
|
|
123
|
-
children: /* @__PURE__ */ e(
|
|
122
|
+
className: n ? xe : Ce,
|
|
123
|
+
children: /* @__PURE__ */ e(te, {})
|
|
124
124
|
})
|
|
125
125
|
]
|
|
126
126
|
});
|
|
127
|
-
},
|
|
128
|
-
let { children: n, topFixed:
|
|
129
|
-
const { isDarkMode: s } =
|
|
127
|
+
}, Ve = 300, A = (param)=>{
|
|
128
|
+
let { children: n, topFixed: a, withBorder: t, isMenuOpen: r, isInverse: o, dataAttributes: d } = param;
|
|
129
|
+
const { isDarkMode: s } = x();
|
|
130
130
|
return /* @__PURE__ */ e("header", _object_spread_props(_object_spread({
|
|
131
|
-
className:
|
|
132
|
-
|
|
133
|
-
return r || h || !t ? C.noBorder : r && !h ? C.menuOpen : C.default;
|
|
134
|
-
})(), {
|
|
135
|
-
[Me]: o && !d,
|
|
136
|
-
[Ae]: o && d
|
|
131
|
+
className: u((()=>o && !s || !t ? M.noBorder : r ? M.menuOpen : M.default)(), {
|
|
132
|
+
[Se]: a
|
|
137
133
|
}),
|
|
138
134
|
style: {
|
|
139
|
-
|
|
140
|
-
background: a ? H.colors.navigationBarBackground : H.colors.background
|
|
135
|
+
background: o ? H.colors.navigationBarBackground : H.colors.background
|
|
141
136
|
}
|
|
142
|
-
},
|
|
137
|
+
}, Re(d)), {
|
|
143
138
|
children: n
|
|
144
139
|
}));
|
|
145
|
-
},
|
|
146
|
-
let { right: n, children:
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
140
|
+
}, f = (param)=>/* @__PURE__ */ {
|
|
141
|
+
let { right: n, children: a, desktopOnly: t } = param;
|
|
142
|
+
return i("div", {
|
|
143
|
+
className: u(Ae, {
|
|
144
|
+
[W]: t
|
|
145
|
+
}),
|
|
150
146
|
children: [
|
|
151
|
-
|
|
147
|
+
a,
|
|
152
148
|
n && /* @__PURE__ */ e("div", {
|
|
153
|
-
className:
|
|
154
|
-
style: {
|
|
155
|
-
marginLeft: t ? ye : Ge
|
|
156
|
-
},
|
|
149
|
+
className: Te,
|
|
157
150
|
children: n
|
|
158
151
|
})
|
|
159
152
|
]
|
|
160
153
|
});
|
|
161
|
-
},
|
|
162
|
-
let { sections: n, selectedIndex:
|
|
163
|
-
const { texts:
|
|
164
|
-
|
|
165
|
-
size:
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
isModalOpen: !1
|
|
174
|
-
});
|
|
175
|
-
}, g = _ !== "open", D = n.length > 1;
|
|
176
|
-
return /* @__PURE__ */ i(L, {
|
|
177
|
-
children: [
|
|
178
|
-
/* @__PURE__ */ i(V, {
|
|
179
|
-
disabled: g,
|
|
180
|
-
group: "burger-menu-lock",
|
|
181
|
-
children: [
|
|
182
|
-
/* @__PURE__ */ e(A, {
|
|
183
|
-
isInverse: r,
|
|
184
|
-
children: /* @__PURE__ */ e(f, {
|
|
185
|
-
topFixed: a,
|
|
186
|
-
withBorder: c,
|
|
187
|
-
isMenuOpen: l,
|
|
188
|
-
isInverse: r,
|
|
189
|
-
dataAttributes: {
|
|
190
|
-
"component-name": "MainNavigationBar"
|
|
191
|
-
},
|
|
192
|
-
children: /* @__PURE__ */ e(m, {
|
|
193
|
-
children: /* @__PURE__ */ e(N, {
|
|
194
|
-
right: t,
|
|
195
|
-
children: /* @__PURE__ */ i(u, {
|
|
196
|
-
space: 24,
|
|
197
|
-
alignItems: "center",
|
|
198
|
-
children: [
|
|
199
|
-
D && /* @__PURE__ */ e(U, {
|
|
200
|
-
"aria-live": "polite",
|
|
201
|
-
"aria-label": l ? h.closeNavigationMenu : h.openNavigationMenu,
|
|
202
|
-
"aria-expanded": l,
|
|
203
|
-
"aria-controls": k,
|
|
204
|
-
onPress: l ? b : I,
|
|
205
|
-
children: /* @__PURE__ */ e(ke, {
|
|
206
|
-
isOpen: l
|
|
207
|
-
})
|
|
208
|
-
}),
|
|
209
|
-
/* @__PURE__ */ e("div", {
|
|
210
|
-
className: P,
|
|
211
|
-
children: s
|
|
212
|
-
})
|
|
213
|
-
]
|
|
214
|
-
})
|
|
215
|
-
})
|
|
216
|
-
})
|
|
217
|
-
})
|
|
218
|
-
}),
|
|
219
|
-
a && /* @__PURE__ */ e("div", {
|
|
220
|
-
className: T
|
|
221
|
-
})
|
|
222
|
-
]
|
|
223
|
-
}),
|
|
224
|
-
D && /* @__PURE__ */ e(le, {
|
|
225
|
-
children: /* @__PURE__ */ e(V, {
|
|
226
|
-
disabled: g,
|
|
227
|
-
group: "burger-menu-lock",
|
|
228
|
-
children: /* @__PURE__ */ e(Z, {
|
|
229
|
-
onEntering: ()=>{
|
|
230
|
-
v("opening");
|
|
231
|
-
},
|
|
232
|
-
onEntered: ()=>{
|
|
233
|
-
v("open");
|
|
234
|
-
},
|
|
235
|
-
onExiting: ()=>{
|
|
236
|
-
v("closing");
|
|
237
|
-
},
|
|
238
|
-
onExited: ()=>{
|
|
239
|
-
v("closed");
|
|
240
|
-
},
|
|
241
|
-
in: l,
|
|
242
|
-
timeout: _e() ? 0 : Ee,
|
|
243
|
-
unmountOnExit: !0,
|
|
244
|
-
children: (K)=>/* @__PURE__ */ e(L, {
|
|
245
|
-
children: /* @__PURE__ */ e("nav", {
|
|
246
|
-
className: M(ue, pe[K]),
|
|
247
|
-
style: {
|
|
248
|
-
boxShadow: _ !== "closed" ? `6px 0 4px -4px rgba(0, 0, 0, ${J})` : "none"
|
|
249
|
-
},
|
|
250
|
-
id: k,
|
|
251
|
-
onClick: ()=>{
|
|
252
|
-
b();
|
|
253
|
-
},
|
|
254
|
-
children: /* @__PURE__ */ e(m, {
|
|
255
|
-
children: /* @__PURE__ */ i(Re, {
|
|
256
|
-
space: 16,
|
|
257
|
-
children: [
|
|
258
|
-
/* @__PURE__ */ e(oe, {
|
|
259
|
-
children: /* @__PURE__ */ e(ie, {
|
|
260
|
-
children: n.map((Q, X)=>/* @__PURE__ */ e(ce, _object_spread({}, Q), X))
|
|
261
|
-
})
|
|
262
|
-
}),
|
|
263
|
-
d && /* @__PURE__ */ e(xe, {
|
|
264
|
-
paddingBottom: 16,
|
|
265
|
-
children: d
|
|
266
|
-
})
|
|
267
|
-
]
|
|
268
|
-
})
|
|
269
|
-
})
|
|
270
|
-
})
|
|
271
|
-
})
|
|
272
|
-
})
|
|
273
|
-
})
|
|
274
|
-
})
|
|
275
|
-
]
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
const y = ()=>/* @__PURE__ */ e("nav", {
|
|
279
|
-
children: /* @__PURE__ */ e(u, {
|
|
154
|
+
}, mn = (param)=>{
|
|
155
|
+
let { sections: n, selectedIndex: a, right: t, isInverse: r = !1, topFixed: o = !0, withBorder: d = !0, burgerMenuExtra: s, logo: c, large: m = !1 } = param;
|
|
156
|
+
const { texts: T, isDarkMode: J } = x(), [l, O] = k.useState(!1), [I, p] = k.useState("closed"), R = ne(), K = J ? 1 : 0.2, { isTabletOrSmaller: Q } = re(), y = ue();
|
|
157
|
+
c = c !== null && c !== void 0 ? c : /* @__PURE__ */ e(U, {
|
|
158
|
+
size: {
|
|
159
|
+
mobile: 40,
|
|
160
|
+
desktop: 48
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
const E = ()=>/* @__PURE__ */ e("nav", {
|
|
164
|
+
className: W,
|
|
165
|
+
children: /* @__PURE__ */ e(v, {
|
|
280
166
|
space: 32,
|
|
281
|
-
children: n.map((_param,
|
|
282
|
-
var { title:
|
|
167
|
+
children: n.map((_param, h)=>/* @__PURE__ */ /*#__PURE__*/ {
|
|
168
|
+
var { title: B } = _param, b = _object_without_properties(_param, [
|
|
283
169
|
"title"
|
|
284
170
|
]);
|
|
285
|
-
return Y(
|
|
286
|
-
key:
|
|
287
|
-
className:
|
|
288
|
-
[
|
|
289
|
-
},
|
|
290
|
-
}), /* @__PURE__ */ e(
|
|
171
|
+
return Y(P, _object_spread_props(_object_spread({}, b), {
|
|
172
|
+
key: h,
|
|
173
|
+
className: u(Oe, {
|
|
174
|
+
[Ie[r ? "inverse" : "default"]]: h === a
|
|
175
|
+
}, $[r ? "inverse" : "default"])
|
|
176
|
+
}), /* @__PURE__ */ e(_, {
|
|
291
177
|
regular: !0,
|
|
292
178
|
color: "inherit",
|
|
293
|
-
children:
|
|
179
|
+
children: B
|
|
294
180
|
}));
|
|
295
181
|
})
|
|
296
182
|
})
|
|
297
|
-
}),
|
|
298
|
-
|
|
183
|
+
}), N = m && n.length > 0, X = ()=>{
|
|
184
|
+
O(!0), y({
|
|
185
|
+
isModalOpen: !0
|
|
186
|
+
});
|
|
187
|
+
}, w = ()=>{
|
|
188
|
+
O(!1), y({
|
|
189
|
+
isModalOpen: !1
|
|
190
|
+
});
|
|
191
|
+
}, L = I !== "open", V = n.length > 1, D = /* @__PURE__ */ i(C, {
|
|
299
192
|
isInverse: r,
|
|
300
193
|
children: [
|
|
301
|
-
/* @__PURE__ */ e(
|
|
302
|
-
topFixed:
|
|
303
|
-
withBorder:
|
|
194
|
+
/* @__PURE__ */ e(A, {
|
|
195
|
+
topFixed: o,
|
|
196
|
+
withBorder: d,
|
|
304
197
|
isMenuOpen: l,
|
|
305
198
|
isInverse: r,
|
|
306
199
|
dataAttributes: {
|
|
307
200
|
"component-name": "MainNavigationBar"
|
|
308
201
|
},
|
|
309
|
-
children: /* @__PURE__ */
|
|
310
|
-
children:
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
202
|
+
children: /* @__PURE__ */ i(g, {
|
|
203
|
+
children: [
|
|
204
|
+
/* @__PURE__ */ e(f, {
|
|
205
|
+
right: t,
|
|
206
|
+
children: /* @__PURE__ */ i("div", {
|
|
207
|
+
className: pe,
|
|
208
|
+
children: [
|
|
209
|
+
V && /* @__PURE__ */ e(z, {
|
|
210
|
+
className: he,
|
|
211
|
+
"aria-live": "polite",
|
|
212
|
+
"aria-label": l ? T.closeNavigationMenu : T.openNavigationMenu,
|
|
213
|
+
"aria-expanded": l,
|
|
214
|
+
"aria-controls": R,
|
|
215
|
+
onPress: l ? w : X,
|
|
216
|
+
children: /* @__PURE__ */ e(Le, {
|
|
217
|
+
isOpen: l
|
|
218
|
+
})
|
|
219
|
+
}),
|
|
220
|
+
/* @__PURE__ */ e("div", {
|
|
221
|
+
className: ge,
|
|
222
|
+
children: c
|
|
223
|
+
}),
|
|
224
|
+
!N && E()
|
|
225
|
+
]
|
|
226
|
+
})
|
|
227
|
+
}),
|
|
228
|
+
N && /* @__PURE__ */ e(f, {
|
|
229
|
+
desktopOnly: !0,
|
|
230
|
+
children: E()
|
|
322
231
|
})
|
|
323
|
-
|
|
232
|
+
]
|
|
324
233
|
})
|
|
325
234
|
}),
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
235
|
+
o && /* @__PURE__ */ e("div", {
|
|
236
|
+
className: N ? fe : S
|
|
237
|
+
})
|
|
238
|
+
]
|
|
239
|
+
});
|
|
240
|
+
return Q ? /* @__PURE__ */ i(F, {
|
|
241
|
+
children: [
|
|
242
|
+
/* @__PURE__ */ e(G, {
|
|
243
|
+
disabled: L,
|
|
244
|
+
group: "burger-menu-lock",
|
|
245
|
+
children: D
|
|
246
|
+
}),
|
|
247
|
+
V && /* @__PURE__ */ e(de, {
|
|
248
|
+
children: /* @__PURE__ */ e(G, {
|
|
249
|
+
disabled: L,
|
|
250
|
+
group: "burger-menu-lock",
|
|
251
|
+
children: /* @__PURE__ */ e(Z, {
|
|
252
|
+
onEntering: ()=>{
|
|
253
|
+
p("opening");
|
|
254
|
+
},
|
|
255
|
+
onEntered: ()=>{
|
|
256
|
+
p("open");
|
|
257
|
+
},
|
|
258
|
+
onExiting: ()=>{
|
|
259
|
+
p("closing");
|
|
260
|
+
},
|
|
261
|
+
onExited: ()=>{
|
|
262
|
+
p("closed");
|
|
263
|
+
},
|
|
264
|
+
in: l,
|
|
265
|
+
timeout: we() ? 0 : Ve,
|
|
266
|
+
unmountOnExit: !0,
|
|
267
|
+
children: (B)=>/* @__PURE__ */ e(F, {
|
|
268
|
+
children: /* @__PURE__ */ e("nav", {
|
|
269
|
+
className: u(ve, Ne[B]),
|
|
270
|
+
style: {
|
|
271
|
+
boxShadow: I !== "closed" ? `6px 0 4px -4px rgba(0, 0, 0, ${K})` : "none"
|
|
272
|
+
},
|
|
273
|
+
id: R,
|
|
274
|
+
onClick: ()=>{
|
|
275
|
+
w();
|
|
276
|
+
},
|
|
277
|
+
children: /* @__PURE__ */ e(g, {
|
|
278
|
+
children: /* @__PURE__ */ i(ye, {
|
|
279
|
+
space: 16,
|
|
280
|
+
children: [
|
|
281
|
+
/* @__PURE__ */ e(ie, {
|
|
282
|
+
children: /* @__PURE__ */ e(se, {
|
|
283
|
+
children: n.map((b, h)=>/* @__PURE__ */ e(ce, _object_spread({}, b), h))
|
|
284
|
+
})
|
|
285
|
+
}),
|
|
286
|
+
s && /* @__PURE__ */ e(Ee, {
|
|
287
|
+
paddingBottom: 16,
|
|
288
|
+
children: s
|
|
289
|
+
})
|
|
290
|
+
]
|
|
291
|
+
})
|
|
292
|
+
})
|
|
293
|
+
})
|
|
294
|
+
})
|
|
338
295
|
})
|
|
339
296
|
})
|
|
340
|
-
}),
|
|
341
|
-
a && /* @__PURE__ */ e("div", {
|
|
342
|
-
className: B ? he : T
|
|
343
297
|
})
|
|
344
298
|
]
|
|
345
|
-
});
|
|
346
|
-
},
|
|
347
|
-
let { onBack: n, title:
|
|
348
|
-
const { texts:
|
|
299
|
+
}) : D;
|
|
300
|
+
}, un = (param)=>{
|
|
301
|
+
let { onBack: n, title: a, right: t, isInverse: r = !1, topFixed: o = !0, paddingX: d = 0, withBorder: s = !0 } = param;
|
|
302
|
+
const { texts: c } = x(), m = /* @__PURE__ */ e(f, {
|
|
349
303
|
right: t,
|
|
350
|
-
children: /* @__PURE__ */ i(
|
|
304
|
+
children: /* @__PURE__ */ i(v, {
|
|
351
305
|
space: 24,
|
|
352
306
|
alignItems: "center",
|
|
353
307
|
children: [
|
|
354
|
-
n && /* @__PURE__ */ e(
|
|
355
|
-
"aria-label":
|
|
308
|
+
n && /* @__PURE__ */ e(z, {
|
|
309
|
+
"aria-label": c.backNavigationBar,
|
|
356
310
|
onPress: n,
|
|
357
|
-
className:
|
|
358
|
-
children: /* @__PURE__ */ e(
|
|
311
|
+
className: Be[r ? "inverse" : "default"],
|
|
312
|
+
children: /* @__PURE__ */ e(oe, {
|
|
359
313
|
color: "currentColor"
|
|
360
314
|
})
|
|
361
315
|
}),
|
|
362
|
-
/* @__PURE__ */ e(
|
|
316
|
+
/* @__PURE__ */ e(_, {
|
|
363
317
|
regular: !0,
|
|
364
318
|
truncate: !0,
|
|
365
|
-
children:
|
|
319
|
+
children: a
|
|
366
320
|
})
|
|
367
321
|
]
|
|
368
322
|
})
|
|
369
323
|
});
|
|
370
|
-
return /* @__PURE__ */ i(
|
|
324
|
+
return /* @__PURE__ */ i(C, {
|
|
371
325
|
isInverse: r,
|
|
372
326
|
children: [
|
|
373
|
-
/* @__PURE__ */ e(
|
|
374
|
-
topFixed:
|
|
375
|
-
withBorder:
|
|
327
|
+
/* @__PURE__ */ e(A, {
|
|
328
|
+
topFixed: o,
|
|
329
|
+
withBorder: s,
|
|
376
330
|
isInverse: r,
|
|
377
331
|
dataAttributes: {
|
|
378
332
|
"component-name": "NavigationBar"
|
|
379
333
|
},
|
|
380
|
-
children:
|
|
381
|
-
children:
|
|
334
|
+
children: o ? /* @__PURE__ */ e(g, {
|
|
335
|
+
children: m
|
|
382
336
|
}) : /* @__PURE__ */ e("div", {
|
|
383
|
-
className:
|
|
337
|
+
className: q({
|
|
384
338
|
width: "100%"
|
|
385
339
|
}),
|
|
386
340
|
style: {
|
|
387
|
-
padding: `0 ${
|
|
341
|
+
padding: `0 ${d}px`
|
|
388
342
|
},
|
|
389
|
-
children:
|
|
343
|
+
children: m
|
|
390
344
|
})
|
|
391
345
|
}),
|
|
392
|
-
|
|
393
|
-
className:
|
|
346
|
+
o && /* @__PURE__ */ e("div", {
|
|
347
|
+
className: S
|
|
394
348
|
})
|
|
395
349
|
]
|
|
396
350
|
});
|
|
397
|
-
},
|
|
398
|
-
let { logo: n, right:
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
351
|
+
}, pn = (param)=>{
|
|
352
|
+
let { logo: n, right: a, isInverse: t = !1, topFixed: r = !0, withBorder: o = !0 } = param;
|
|
353
|
+
return n = n !== null && n !== void 0 ? n : /* @__PURE__ */ e(U, {
|
|
354
|
+
size: {
|
|
355
|
+
mobile: 40,
|
|
356
|
+
desktop: 48
|
|
357
|
+
}
|
|
358
|
+
}), /* @__PURE__ */ i(C, {
|
|
403
359
|
isInverse: t,
|
|
404
360
|
children: [
|
|
405
|
-
/* @__PURE__ */ e(
|
|
361
|
+
/* @__PURE__ */ e(A, {
|
|
406
362
|
topFixed: r,
|
|
407
|
-
withBorder:
|
|
363
|
+
withBorder: o,
|
|
408
364
|
isInverse: t,
|
|
409
365
|
dataAttributes: {
|
|
410
366
|
"component-name": "FunnelNavigationBar"
|
|
411
367
|
},
|
|
412
|
-
children: /* @__PURE__ */ e(
|
|
413
|
-
children: /* @__PURE__ */ e(
|
|
368
|
+
children: /* @__PURE__ */ e(g, {
|
|
369
|
+
children: /* @__PURE__ */ e(me, {
|
|
414
370
|
template: "10",
|
|
415
|
-
children: /* @__PURE__ */ e(
|
|
416
|
-
right:
|
|
371
|
+
children: /* @__PURE__ */ e(f, {
|
|
372
|
+
right: a,
|
|
417
373
|
children: n
|
|
418
374
|
})
|
|
419
375
|
})
|
|
420
376
|
})
|
|
421
377
|
}),
|
|
422
378
|
r && /* @__PURE__ */ e("div", {
|
|
423
|
-
className:
|
|
379
|
+
className: S
|
|
424
380
|
})
|
|
425
381
|
]
|
|
426
382
|
});
|
|
427
|
-
},
|
|
383
|
+
}, hn = (param)=>/* @__PURE__ */ {
|
|
428
384
|
let { children: n } = param;
|
|
429
385
|
return e("div", {
|
|
430
|
-
className:
|
|
386
|
+
className: j,
|
|
431
387
|
"data-component-name": "NavigationBarActionGroup",
|
|
432
|
-
children: /* @__PURE__ */ e(
|
|
388
|
+
children: /* @__PURE__ */ e(v, {
|
|
433
389
|
space: 24,
|
|
434
390
|
alignItems: "center",
|
|
435
391
|
children: n
|
|
436
392
|
})
|
|
437
393
|
});
|
|
438
|
-
},
|
|
439
|
-
var { children: n } = _param,
|
|
394
|
+
}, gn = (_param)=>{
|
|
395
|
+
var { children: n } = _param, a = _object_without_properties(_param, [
|
|
440
396
|
"children"
|
|
441
397
|
]);
|
|
442
|
-
const t =
|
|
443
|
-
return /* @__PURE__ */ e(
|
|
444
|
-
className:
|
|
398
|
+
const t = le();
|
|
399
|
+
return /* @__PURE__ */ e(P, _object_spread_props(_object_spread({}, a), {
|
|
400
|
+
className: u(q({
|
|
445
401
|
border: "none",
|
|
446
402
|
background: "transparent",
|
|
447
403
|
padding: 0
|
|
448
|
-
}),
|
|
404
|
+
}), j, $[t ? "inverse" : "default"]),
|
|
449
405
|
dataAttributes: {
|
|
450
406
|
"component-name": "NavigationBarAction"
|
|
451
407
|
},
|
|
452
|
-
children: /* @__PURE__ */ e(
|
|
408
|
+
children: /* @__PURE__ */ e(v, {
|
|
453
409
|
space: 16,
|
|
454
410
|
alignItems: "center",
|
|
455
|
-
children:
|
|
411
|
+
children: k.Children.map(n, (r)=>typeof r == "string" ? /* @__PURE__ */ e(ee, {
|
|
456
412
|
regular: !0,
|
|
457
413
|
color: "inherit",
|
|
458
414
|
children: r
|
|
@@ -460,4 +416,4 @@ const ke = (param)=>/* @__PURE__ */ {
|
|
|
460
416
|
})
|
|
461
417
|
}));
|
|
462
418
|
};
|
|
463
|
-
export {
|
|
419
|
+
export { pn as FunnelNavigationBar, mn as MainNavigationBar, un as NavigationBar, gn as NavigationBarAction, hn as NavigationBarActionGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const o = "14.
|
|
1
|
+
const o = "14.39.0";
|
|
2
2
|
export { o as PACKAGE_VERSION };
|