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