@alfadocs/ui-kit 1.125.1 → 1.125.3
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/_chunks/{contact-profile-card-Jz2aSh7T.js → contact-profile-card-CCgf0Ntt.js} +43 -40
- package/dist/_chunks/{map-view-DRd_GRQf.js → map-view-DkL58SRp.js} +288 -305
- package/dist/_chunks/{practice-results-CbxBCDaU.js → practice-results-BDnZtbDM.js} +3 -3
- package/dist/_chunks/{reserved.agent-Dxzmi3GS.js → reserved.agent-BBuWWtYb.js} +2 -2
- package/dist/_chunks/{slot-grid-DEZRB4Yb.js → slot-grid-CfA5zeMv.js} +283 -227
- package/dist/agent-catalog.json +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/index.js +5 -5
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
|
@@ -145,15 +145,15 @@ const Te = me(
|
|
|
145
145
|
onEmailClick: te,
|
|
146
146
|
headerSlot: re,
|
|
147
147
|
footerSlot: ie,
|
|
148
|
-
mapSlot:
|
|
148
|
+
mapSlot: ne,
|
|
149
149
|
factsAsDefinitionList: N = !1,
|
|
150
150
|
surface: A = "elevated",
|
|
151
|
-
"aria-label":
|
|
151
|
+
"aria-label": oe,
|
|
152
152
|
id: k,
|
|
153
153
|
className: le,
|
|
154
154
|
...ce
|
|
155
155
|
}, se) => {
|
|
156
|
-
const { t: r, i18n: I } = ve("ui"), R = he(), K = I.language ?? "en", F = i ?? r("contactProfileCard.heading"), de =
|
|
156
|
+
const { t: r, i18n: I } = ve("ui"), R = he(), K = I.language ?? "en", F = i ?? r("contactProfileCard.heading"), de = oe ?? F, T = ge(() => {
|
|
157
157
|
if (C != null)
|
|
158
158
|
return Pe(
|
|
159
159
|
C,
|
|
@@ -161,25 +161,28 @@ const Te = me(
|
|
|
161
161
|
K,
|
|
162
162
|
r("common.freeOfCharge")
|
|
163
163
|
);
|
|
164
|
-
}, [C, M, K, r]),
|
|
165
|
-
if (a &&
|
|
164
|
+
}, [C, M, K, r]), o = [];
|
|
165
|
+
if (a && o.push({
|
|
166
166
|
key: "address",
|
|
167
167
|
icon: /* @__PURE__ */ e(D, { "aria-hidden": "true" }),
|
|
168
168
|
label: r("contactProfileCard.label.address"),
|
|
169
169
|
value: /* @__PURE__ */ m("span", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
170
170
|
/* @__PURE__ */ e("span", { lang: l, dir: "auto", children: a.line }),
|
|
171
|
-
a.lat != null && a.lng != null ?
|
|
172
|
-
|
|
173
|
-
{
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
171
|
+
a.lat != null && a.lng != null ? (
|
|
172
|
+
// A secondary action under the address: the small body size.
|
|
173
|
+
/* @__PURE__ */ e("span", { className: "type-body-sm", children: /* @__PURE__ */ e(
|
|
174
|
+
d,
|
|
175
|
+
{
|
|
176
|
+
href: Re(a),
|
|
177
|
+
external: !0,
|
|
178
|
+
intent: "default",
|
|
179
|
+
onClick: ae,
|
|
180
|
+
children: r("contactProfileCard.openInGoogleMaps")
|
|
181
|
+
}
|
|
182
|
+
) })
|
|
180
183
|
) : null
|
|
181
184
|
] })
|
|
182
|
-
}), s &&
|
|
185
|
+
}), s && o.push({
|
|
183
186
|
key: "phone",
|
|
184
187
|
icon: /* @__PURE__ */ e(W, { "aria-hidden": "true" }),
|
|
185
188
|
label: r("contactProfileCard.label.phone"),
|
|
@@ -192,7 +195,7 @@ const Te = me(
|
|
|
192
195
|
children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: E(s, { defaultCountry: h }) })
|
|
193
196
|
}
|
|
194
197
|
)
|
|
195
|
-
}), g &&
|
|
198
|
+
}), g && o.push({
|
|
196
199
|
key: "whatsapp",
|
|
197
200
|
icon: /* @__PURE__ */ e(q, { "aria-hidden": "true" }),
|
|
198
201
|
label: r("contactProfileCard.label.whatsapp"),
|
|
@@ -208,7 +211,7 @@ const Te = me(
|
|
|
208
211
|
}) })
|
|
209
212
|
}
|
|
210
213
|
)
|
|
211
|
-
}), y &&
|
|
214
|
+
}), y && o.push({
|
|
212
215
|
key: "email",
|
|
213
216
|
icon: /* @__PURE__ */ e(j, { "aria-hidden": "true" }),
|
|
214
217
|
label: r("contactProfileCard.label.email"),
|
|
@@ -222,45 +225,45 @@ const Te = me(
|
|
|
222
225
|
}
|
|
223
226
|
)
|
|
224
227
|
}), p) {
|
|
225
|
-
const
|
|
226
|
-
|
|
228
|
+
const n = Ie(p);
|
|
229
|
+
o.push({
|
|
227
230
|
key: "website",
|
|
228
231
|
icon: /* @__PURE__ */ e(B, { "aria-hidden": "true" }),
|
|
229
232
|
label: r("contactProfileCard.label.website"),
|
|
230
|
-
value:
|
|
233
|
+
value: n ? /* @__PURE__ */ e(d, { href: n, external: !0, intent: "default", children: /* @__PURE__ */ e("bdi", { dir: "ltr", children: p }) }) : /* @__PURE__ */ e("bdi", { dir: "ltr", children: p })
|
|
231
234
|
});
|
|
232
235
|
}
|
|
233
236
|
if (v && v.length > 0) {
|
|
234
|
-
const
|
|
237
|
+
const n = (c) => {
|
|
235
238
|
if (u != null && u[c]) return u[c];
|
|
236
239
|
const H = `languages.${c}`;
|
|
237
240
|
return I.exists(H) ? r(H) : c.toUpperCase();
|
|
238
241
|
};
|
|
239
|
-
|
|
242
|
+
o.push({
|
|
240
243
|
key: "languages",
|
|
241
244
|
icon: /* @__PURE__ */ e(L, { "aria-hidden": "true" }),
|
|
242
245
|
label: r("contactProfileCard.label.languages"),
|
|
243
|
-
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: v.map((c) => /* @__PURE__ */ e(w, { variant: "neutral", children:
|
|
246
|
+
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: v.map((c) => /* @__PURE__ */ e(w, { variant: "neutral", children: n(c) }, c)) })
|
|
244
247
|
});
|
|
245
248
|
}
|
|
246
|
-
b && b.length > 0 &&
|
|
249
|
+
b && b.length > 0 && o.push({
|
|
247
250
|
key: "insurances",
|
|
248
251
|
icon: /* @__PURE__ */ e(G, { "aria-hidden": "true" }),
|
|
249
252
|
label: r("contactProfileCard.label.insurances"),
|
|
250
|
-
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: b.map((
|
|
251
|
-
}), T &&
|
|
253
|
+
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: b.map((n) => /* @__PURE__ */ e(w, { variant: "info", children: n }, n)) })
|
|
254
|
+
}), T && o.push({
|
|
252
255
|
key: "firstVisitPrice",
|
|
253
256
|
icon: /* @__PURE__ */ e(Y, { "aria-hidden": "true" }),
|
|
254
257
|
label: r("contactProfileCard.label.firstVisitPrice"),
|
|
255
258
|
value: /* @__PURE__ */ e(w, { variant: "accentSoft", size: "lg", children: T })
|
|
256
|
-
}), Q &&
|
|
259
|
+
}), Q && o.push({
|
|
257
260
|
key: "expertForAnxiousPatients",
|
|
258
261
|
icon: /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
|
|
259
262
|
label: r("contactProfileCard.label.expertForAnxiousPatients"),
|
|
260
263
|
value: r("contactProfileCard.value.yesShort")
|
|
261
264
|
});
|
|
262
265
|
const f = P && P.length > 0 ? P : void 0;
|
|
263
|
-
x && !f &&
|
|
266
|
+
x && !f && o.push({
|
|
264
267
|
key: "profession",
|
|
265
268
|
icon: /* @__PURE__ */ e(S, { "aria-hidden": "true" }),
|
|
266
269
|
label: r("contactProfileCard.label.profession"),
|
|
@@ -269,7 +272,7 @@ const Te = me(
|
|
|
269
272
|
Me,
|
|
270
273
|
{
|
|
271
274
|
getProfession: () => x,
|
|
272
|
-
getSpecialtyKeys: () => (f ?? []).map((
|
|
275
|
+
getSpecialtyKeys: () => (f ?? []).map((n) => n.key)
|
|
273
276
|
},
|
|
274
277
|
k
|
|
275
278
|
);
|
|
@@ -284,7 +287,7 @@ const Te = me(
|
|
|
284
287
|
defaultValue: "Map showing {{address}}"
|
|
285
288
|
})
|
|
286
289
|
}
|
|
287
|
-
) : null, ue =
|
|
290
|
+
) : null, ue = ne ?? pe, fe = /* @__PURE__ */ m(O, { children: [
|
|
288
291
|
t ? /* @__PURE__ */ e(
|
|
289
292
|
"p",
|
|
290
293
|
{
|
|
@@ -294,17 +297,17 @@ const Te = me(
|
|
|
294
297
|
children: t
|
|
295
298
|
}
|
|
296
299
|
) : null,
|
|
297
|
-
|
|
300
|
+
o.length > 0 ? /* @__PURE__ */ e(be, { rowGap: "md", semantic: N, children: o.map((n) => /* @__PURE__ */ e(
|
|
298
301
|
z,
|
|
299
302
|
{
|
|
300
|
-
icon:
|
|
301
|
-
label:
|
|
302
|
-
value:
|
|
303
|
+
icon: n.icon,
|
|
304
|
+
label: n.label,
|
|
305
|
+
value: n.value
|
|
303
306
|
},
|
|
304
|
-
|
|
307
|
+
n.key
|
|
305
308
|
)) }) : null,
|
|
306
309
|
f ? (() => {
|
|
307
|
-
const
|
|
310
|
+
const n = /* @__PURE__ */ e(
|
|
308
311
|
z,
|
|
309
312
|
{
|
|
310
313
|
layout: "vertical",
|
|
@@ -314,7 +317,7 @@ const Te = me(
|
|
|
314
317
|
value: /* @__PURE__ */ e(xe, { items: f })
|
|
315
318
|
}
|
|
316
319
|
);
|
|
317
|
-
return N ? /* @__PURE__ */ e(Ce, { children:
|
|
320
|
+
return N ? /* @__PURE__ */ e(Ce, { children: n }) : n;
|
|
318
321
|
})() : null,
|
|
319
322
|
ue,
|
|
320
323
|
ie
|
|
@@ -361,7 +364,7 @@ const ia = [
|
|
|
361
364
|
"firstVisitPrice",
|
|
362
365
|
"expertForAnxiousPatients",
|
|
363
366
|
"profession"
|
|
364
|
-
],
|
|
367
|
+
], na = {
|
|
365
368
|
address: D,
|
|
366
369
|
phone: W,
|
|
367
370
|
whatsapp: q,
|
|
@@ -374,9 +377,9 @@ const ia = [
|
|
|
374
377
|
profession: S
|
|
375
378
|
};
|
|
376
379
|
export {
|
|
377
|
-
|
|
380
|
+
na as C,
|
|
378
381
|
ia as a,
|
|
379
382
|
Te as b,
|
|
380
383
|
Me as c
|
|
381
384
|
};
|
|
382
|
-
//# sourceMappingURL=contact-profile-card-
|
|
385
|
+
//# sourceMappingURL=contact-profile-card-CCgf0Ntt.js.map
|