@alfadocs/ui-kit-debug 1.74.0 → 1.75.1
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/booking-D2r19Lia.js +3901 -0
- package/dist/_chunks/booking-D2r19Lia.js.map +1 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-CctI6mpd.js → calendar-appointment-editor-dialog-B4My4eiB.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-CctI6mpd.js.map → calendar-appointment-editor-dialog-B4My4eiB.js.map} +1 -1
- package/dist/_chunks/{header-settings-DBlTL6Qj.js → header-settings-Coh1r41O.js} +148 -154
- package/dist/_chunks/header-settings-Coh1r41O.js.map +1 -0
- package/dist/_chunks/{locale-picker-KT-Vz3bx.js → locale-picker-DzdGDSBI.js} +311 -282
- package/dist/_chunks/locale-picker-DzdGDSBI.js.map +1 -0
- package/dist/_chunks/{marketplace-app-shell-B0ix9yNI.js → marketplace-app-shell-Ck5NVJcO.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-B0ix9yNI.js.map → marketplace-app-shell-Ck5NVJcO.js.map} +1 -1
- package/dist/_chunks/{patient-details-Dgd_tocD.js → patient-details-B-I9Xkh9.js} +2 -2
- package/dist/_chunks/{patient-details-Dgd_tocD.js.map → patient-details-B-I9Xkh9.js.map} +1 -1
- package/dist/_chunks/{patient-field-row-BFVlJnS9.js → patient-field-row-Bn0z6lAZ.js} +2 -2
- package/dist/_chunks/{patient-field-row-BFVlJnS9.js.map → patient-field-row-Bn0z6lAZ.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-BTKvFUmh.js → patient-summary-card-bhDo0gVX.js} +2 -2
- package/dist/_chunks/{patient-summary-card-BTKvFUmh.js.map → patient-summary-card-bhDo0gVX.js.map} +1 -1
- package/dist/_chunks/{phone-input-EwVuqFik.js → phone-input-C3NrD-nl.js} +78 -73
- package/dist/_chunks/phone-input-C3NrD-nl.js.map +1 -0
- package/dist/_chunks/{registration-form-B6qqeXP1.js → registration-form-DeK2QiJu.js} +2 -2
- package/dist/_chunks/{registration-form-B6qqeXP1.js.map → registration-form-DeK2QiJu.js.map} +1 -1
- package/dist/_chunks/{send-registration-link-form-pO2bGjGa.js → send-registration-link-form-__DWY62q.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-pO2bGjGa.js.map → send-registration-link-form-__DWY62q.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-BFslxbRr.js → use-appointment-details-read-lFUL4kkd.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BFslxbRr.js.map → use-appointment-details-read-lFUL4kkd.js.map} +1 -1
- package/dist/agent-catalog.json +4 -4
- package/dist/agent-i18n/en.json +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/booking/booking-types.d.ts +9 -1
- package/dist/components/booking/booking-types.d.ts.map +1 -1
- package/dist/components/booking/booking.agent.d.ts.map +1 -1
- package/dist/components/booking/booking.d.ts.map +1 -1
- package/dist/components/booking/details-form.d.ts +2 -0
- package/dist/components/booking/details-form.d.ts.map +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/header-settings/header-settings.d.ts +6 -0
- package/dist/components/header-settings/header-settings.d.ts.map +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/locale-picker/locale-picker.d.ts +16 -4
- package/dist/components/locale-picker/locale-picker.d.ts.map +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.d.ts.map +1 -1
- package/dist/index.js +9 -9
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/booking-sq9sa29d.js +0 -3889
- package/dist/_chunks/booking-sq9sa29d.js.map +0 -1
- package/dist/_chunks/header-settings-DBlTL6Qj.js.map +0 -1
- package/dist/_chunks/locale-picker-KT-Vz3bx.js.map +0 -1
- package/dist/_chunks/phone-input-EwVuqFik.js.map +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { B as
|
|
6
|
-
import { I as
|
|
7
|
-
import { D as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { a as
|
|
13
|
-
import { u as
|
|
1
|
+
import { jsx as t, jsxs as m, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ie, useRef as l, useImperativeHandle as oe, useState as ce, useCallback as le, useMemo as de } from "react";
|
|
3
|
+
import { c as N } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as Y } from "react-i18next";
|
|
5
|
+
import { B as ue } from "./button-DohK_Ak_.js";
|
|
6
|
+
import { I as pe } from "./icon-button-S8_weU3g.js";
|
|
7
|
+
import { D as n } from "./dropdown-menu-D1we7oAY.js";
|
|
8
|
+
import { u as me, p as ge, c as w, a as Z } from "./locale-picker-DzdGDSBI.js";
|
|
9
|
+
import { u as he } from "./use-media-query-CcAx5SMM.js";
|
|
10
|
+
import { u as fe } from "./use-locale-BExNy9Dl.js";
|
|
11
|
+
import { u as ye } from "./use-theme-CAuo6EYT.js";
|
|
12
|
+
import { a as be } from "./use-direction-Dp8h70PP.js";
|
|
13
|
+
import { u as ve } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
14
14
|
import { u as we } from "./registry-DvAUVLHh.js";
|
|
15
|
-
import { u as
|
|
16
|
-
import { S as
|
|
17
|
-
import { A as
|
|
18
|
-
import { C as
|
|
19
|
-
const
|
|
15
|
+
import { u as Se } from "./length-token-DwMnGEYT.js";
|
|
16
|
+
import { S as ke } from "./settings-d25ju_6L.js";
|
|
17
|
+
import { A as J } from "./arrow-left-BfaGqVam.js";
|
|
18
|
+
import { C as X } from "./chevron-right-I9AeSxH2.js";
|
|
19
|
+
const Te = {
|
|
20
20
|
id: "header-settings",
|
|
21
21
|
// Each setter persists a single preference value (locale / theme /
|
|
22
22
|
// accessibility) — `set_value` semantics, not an ephemeral view switch.
|
|
@@ -32,7 +32,7 @@ const ke = {
|
|
|
32
32
|
locale: {
|
|
33
33
|
type: "string",
|
|
34
34
|
descriptionKey: "ui.agent.headerSettings.state.locale",
|
|
35
|
-
description: 'Active IETF language tag (e.g. "en", "it", "ar"). Read after
|
|
35
|
+
description: 'Active IETF language tag (e.g. "en", "it", "ar"). Initially uses storage, then HTML lang when initialLocaleFromHtmlLang is enabled, then the browser. Read after set_locale to confirm the switch; unknown tags leave it unchanged.',
|
|
36
36
|
read: (a) => a.getLocale()
|
|
37
37
|
},
|
|
38
38
|
theme: {
|
|
@@ -75,8 +75,8 @@ const ke = {
|
|
|
75
75
|
"Silently ignored when the tag names a locale the kit ships no bundle for — `locale` is unchanged."
|
|
76
76
|
],
|
|
77
77
|
examples: [{ args: { locale: "it" }, note: "Switch to Italian." }],
|
|
78
|
-
invoke: (a,
|
|
79
|
-
a.setLocale(
|
|
78
|
+
invoke: (a, s) => {
|
|
79
|
+
a.setLocale(s.locale);
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
set_theme: {
|
|
@@ -93,8 +93,8 @@ const ke = {
|
|
|
93
93
|
examples: [
|
|
94
94
|
{ args: { theme: "dark" }, note: "Switch to the dark theme." }
|
|
95
95
|
],
|
|
96
|
-
invoke: (a,
|
|
97
|
-
a.setTheme(
|
|
96
|
+
invoke: (a, s) => {
|
|
97
|
+
a.setTheme(s.theme);
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
set_accessibility: {
|
|
@@ -119,8 +119,8 @@ const ke = {
|
|
|
119
119
|
note: "Enable the AAA-accessible profile."
|
|
120
120
|
}
|
|
121
121
|
],
|
|
122
|
-
invoke: (a,
|
|
123
|
-
a.setAccessibility(
|
|
122
|
+
invoke: (a, s) => {
|
|
123
|
+
a.setAccessibility(s.accessibility);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
},
|
|
@@ -137,19 +137,12 @@ const ke = {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
|
-
function Te(a, n) {
|
|
141
|
-
if (!(typeof window > "u"))
|
|
142
|
-
try {
|
|
143
|
-
window.localStorage.setItem(a, n);
|
|
144
|
-
} catch {
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
140
|
function Le(a) {
|
|
148
141
|
if (typeof document > "u") return;
|
|
149
|
-
const
|
|
150
|
-
|
|
142
|
+
const s = document.documentElement;
|
|
143
|
+
s.lang = a, s.dir = w[a].dir;
|
|
151
144
|
}
|
|
152
|
-
const Ae =
|
|
145
|
+
const Ae = N("ds:inline-flex ds:items-center", {
|
|
153
146
|
variants: {
|
|
154
147
|
align: {
|
|
155
148
|
start: "",
|
|
@@ -157,115 +150,116 @@ const Ae = P("ds:inline-flex ds:items-center", {
|
|
|
157
150
|
}
|
|
158
151
|
},
|
|
159
152
|
defaultVariants: { align: "end" }
|
|
160
|
-
}), Re = "ds:w-[var(--popover-size-md)]",
|
|
153
|
+
}), Re = "ds:w-[var(--popover-size-md)]", De = N("", {
|
|
161
154
|
variants: {
|
|
162
155
|
language: {
|
|
163
156
|
true: "ds:[inline-size:var(--popover-size-md)] ds:[min-inline-size:0] ds:[max-inline-size:calc(100vw_-_2_*_var(--spacing-lg))] ds:[&_input]:min-w-0",
|
|
164
157
|
false: ""
|
|
165
158
|
}
|
|
166
159
|
}
|
|
167
|
-
}),
|
|
160
|
+
}), Ie = N(
|
|
168
161
|
"ds:flex ds:flex-1 ds:min-w-0 ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]"
|
|
169
162
|
);
|
|
170
163
|
function A({
|
|
171
164
|
label: a,
|
|
172
|
-
value:
|
|
173
|
-
lang:
|
|
165
|
+
value: s,
|
|
166
|
+
lang: d
|
|
174
167
|
}) {
|
|
175
|
-
return /* @__PURE__ */
|
|
168
|
+
return /* @__PURE__ */ m("span", { className: Ie(), children: [
|
|
176
169
|
/* @__PURE__ */ t("span", { className: "ds:truncate", children: a }),
|
|
177
170
|
/* @__PURE__ */ t(
|
|
178
171
|
"span",
|
|
179
172
|
{
|
|
180
|
-
lang:
|
|
173
|
+
lang: d,
|
|
181
174
|
className: "ds:shrink-0 ds:text-muted-foreground ds:[[data-highlighted]_&]:text-current",
|
|
182
|
-
children:
|
|
175
|
+
children: s
|
|
183
176
|
}
|
|
184
177
|
)
|
|
185
178
|
] });
|
|
186
179
|
}
|
|
187
|
-
function
|
|
188
|
-
return Object.prototype.hasOwnProperty.call(
|
|
180
|
+
function ee(a) {
|
|
181
|
+
return Object.prototype.hasOwnProperty.call(w, a);
|
|
189
182
|
}
|
|
190
|
-
function
|
|
191
|
-
const { t:
|
|
192
|
-
var
|
|
193
|
-
|
|
194
|
-
},
|
|
195
|
-
const
|
|
196
|
-
if (
|
|
197
|
-
if (
|
|
198
|
-
|
|
183
|
+
function Ce({ locale: a }) {
|
|
184
|
+
const { t: s } = Y("ui"), d = w[ee(a) ? a : "en"], R = (r) => {
|
|
185
|
+
var u;
|
|
186
|
+
r.target === r.currentTarget && ((u = r.currentTarget.querySelector("input")) == null || u.focus({ preventScroll: !0 }));
|
|
187
|
+
}, D = (r) => {
|
|
188
|
+
const u = r.target;
|
|
189
|
+
if (u instanceof HTMLInputElement) {
|
|
190
|
+
if (r.nativeEvent.isComposing) {
|
|
191
|
+
r.stopPropagation();
|
|
199
192
|
return;
|
|
200
193
|
}
|
|
201
|
-
|
|
194
|
+
r.key !== "ArrowLeft" && r.key !== "ArrowRight" || (u.selectionStart !== 0 || u.selectionEnd !== 0) && r.stopPropagation();
|
|
202
195
|
}
|
|
203
196
|
};
|
|
204
|
-
return /* @__PURE__ */
|
|
205
|
-
/* @__PURE__ */ t(
|
|
206
|
-
/* @__PURE__ */ t("span", { className: "ds:truncate", children:
|
|
197
|
+
return /* @__PURE__ */ m(n.Sub, { children: [
|
|
198
|
+
/* @__PURE__ */ t(n.SubTrigger, { "aria-haspopup": "dialog", "data-value": d.code, children: /* @__PURE__ */ m("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
199
|
+
/* @__PURE__ */ t("span", { className: "ds:truncate", children: s("navigation.headerSettings.language.label") }),
|
|
207
200
|
/* @__PURE__ */ t(
|
|
208
201
|
"span",
|
|
209
202
|
{
|
|
210
|
-
lang:
|
|
203
|
+
lang: d.code,
|
|
211
204
|
className: "ds:shrink-0 ds:text-[color:var(--muted-foreground)] ds:[[data-highlighted]_&]:text-current",
|
|
212
|
-
children:
|
|
205
|
+
children: d.nativeName
|
|
213
206
|
}
|
|
214
207
|
)
|
|
215
208
|
] }) }),
|
|
216
209
|
/* @__PURE__ */ t(
|
|
217
|
-
|
|
210
|
+
n.SubContent,
|
|
218
211
|
{
|
|
219
212
|
role: "dialog",
|
|
220
213
|
"aria-orientation": void 0,
|
|
221
214
|
className: Re,
|
|
222
215
|
onFocus: R,
|
|
223
|
-
onKeyDownCapture:
|
|
224
|
-
onEscapeKeyDown: (
|
|
225
|
-
|
|
216
|
+
onKeyDownCapture: D,
|
|
217
|
+
onEscapeKeyDown: (r) => {
|
|
218
|
+
r.isComposing && r.preventDefault();
|
|
226
219
|
},
|
|
227
|
-
children: /* @__PURE__ */ t(
|
|
220
|
+
children: /* @__PURE__ */ t(Z.SearchList, {})
|
|
228
221
|
}
|
|
229
222
|
)
|
|
230
223
|
] });
|
|
231
224
|
}
|
|
232
|
-
const Ke =
|
|
233
|
-
(a,
|
|
234
|
-
var
|
|
225
|
+
const Ke = ie(
|
|
226
|
+
(a, s) => {
|
|
227
|
+
var U;
|
|
235
228
|
const {
|
|
236
|
-
align:
|
|
229
|
+
align: d = "end",
|
|
237
230
|
size: R = "md",
|
|
238
|
-
disabled:
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
be(()
|
|
248
|
-
|
|
249
|
-
|
|
231
|
+
disabled: D = !1,
|
|
232
|
+
initialLocaleFromHtmlLang: r = !1,
|
|
233
|
+
className: u,
|
|
234
|
+
id: _,
|
|
235
|
+
...te
|
|
236
|
+
} = a, { t: p } = Y("ui"), o = ye(), { locale: b, setLocale: H } = fe();
|
|
237
|
+
me(r);
|
|
238
|
+
const I = l(null);
|
|
239
|
+
oe(s, () => I.current, []);
|
|
240
|
+
const g = he("(width < 48rem)"), z = be(), [S, h] = ce("main"), c = g ? S : "main", k = l(null), M = l(null), j = l(null), f = l(null), T = l("keyboard");
|
|
241
|
+
ve(() => {
|
|
242
|
+
var e, i, v, G, Q;
|
|
243
|
+
if (!g && S !== "main" && (f.current = S, h("main")), c === "language")
|
|
250
244
|
(i = (e = k.current) == null ? void 0 : e.querySelector(
|
|
251
245
|
T.current === "keyboard" ? "input" : "button"
|
|
252
246
|
)) == null || i.focus({ preventScroll: !0 });
|
|
253
247
|
else if (c === "appearance")
|
|
254
|
-
(G = (
|
|
248
|
+
(G = (v = k.current) == null ? void 0 : v.querySelector('[role="menuitem"]')) == null || G.focus({ preventScroll: !0 });
|
|
255
249
|
else if (f.current) {
|
|
256
|
-
const W = f.current,
|
|
250
|
+
const W = f.current, E = g ? (W === "language" ? M : j).current : (Q = k.current) == null ? void 0 : Q.querySelector(
|
|
257
251
|
`[role="menuitem"][aria-haspopup="${W === "language" ? "dialog" : "menu"}"]`
|
|
258
252
|
);
|
|
259
|
-
|
|
253
|
+
E == null || E.focus({ preventScroll: !0 }), f.current = null;
|
|
260
254
|
}
|
|
261
|
-
}, [
|
|
262
|
-
const
|
|
255
|
+
}, [g, S, c]);
|
|
256
|
+
const F = (e, i) => {
|
|
263
257
|
if (e.nativeEvent.isComposing) return;
|
|
264
|
-
const
|
|
265
|
-
(e.key === "Enter" || e.key === " " || e.key ===
|
|
266
|
-
},
|
|
258
|
+
const v = z === "rtl" ? "ArrowLeft" : "ArrowRight";
|
|
259
|
+
(e.key === "Enter" || e.key === " " || e.key === v) && (T.current = "keyboard"), e.key === v && (e.preventDefault(), h(i));
|
|
260
|
+
}, C = () => {
|
|
267
261
|
c !== "main" && (f.current = c, h("main"));
|
|
268
|
-
},
|
|
262
|
+
}, ae = (e) => {
|
|
269
263
|
if (c === "main") return;
|
|
270
264
|
if (e.nativeEvent.isComposing) {
|
|
271
265
|
e.stopPropagation();
|
|
@@ -274,22 +268,22 @@ const Ke = se(
|
|
|
274
268
|
if (e.key !== (z === "rtl" ? "ArrowRight" : "ArrowLeft"))
|
|
275
269
|
return;
|
|
276
270
|
const i = e.target;
|
|
277
|
-
i instanceof HTMLInputElement && (i.selectionStart !== 0 || i.selectionEnd !== 0) || (e.preventDefault(), e.stopPropagation(),
|
|
278
|
-
},
|
|
271
|
+
i instanceof HTMLInputElement && (i.selectionStart !== 0 || i.selectionEnd !== 0) || (e.preventDefault(), e.stopPropagation(), C());
|
|
272
|
+
}, O = le(
|
|
279
273
|
(e) => {
|
|
280
|
-
|
|
274
|
+
H(e), Le(e), ge(e);
|
|
281
275
|
},
|
|
282
|
-
[
|
|
283
|
-
), V =
|
|
284
|
-
V.current =
|
|
285
|
-
const q =
|
|
276
|
+
[H]
|
|
277
|
+
), V = l(O);
|
|
278
|
+
V.current = O;
|
|
279
|
+
const q = l(b);
|
|
286
280
|
q.current = b;
|
|
287
|
-
const y =
|
|
281
|
+
const y = l(o);
|
|
288
282
|
y.current = o;
|
|
289
|
-
const
|
|
283
|
+
const ne = de(
|
|
290
284
|
() => ({
|
|
291
285
|
setLocale: (e) => {
|
|
292
|
-
Object.prototype.hasOwnProperty.call(
|
|
286
|
+
Object.prototype.hasOwnProperty.call(w, e) && V.current(e);
|
|
293
287
|
},
|
|
294
288
|
setTheme: (e) => y.current.setTheme(e),
|
|
295
289
|
setAccessibility: (e) => y.current.setAccessibility(e),
|
|
@@ -305,8 +299,8 @@ const Ke = se(
|
|
|
305
299
|
}),
|
|
306
300
|
[]
|
|
307
301
|
);
|
|
308
|
-
we(
|
|
309
|
-
const
|
|
302
|
+
we(Te, ne, _);
|
|
303
|
+
const re = o.accessibility === "accessible", se = Se("--spacing-lg", I, 24), K = p("navigation.headerSettings.language.label"), L = p("navigation.headerSettings.appearance.label"), P = w[ee(b) ? b : "en"], x = [
|
|
310
304
|
{
|
|
311
305
|
value: "light",
|
|
312
306
|
label: p("navigation.headerSettings.appearance.light")
|
|
@@ -316,49 +310,49 @@ const Ke = se(
|
|
|
316
310
|
value: "system",
|
|
317
311
|
label: p("navigation.headerSettings.appearance.system")
|
|
318
312
|
}
|
|
319
|
-
],
|
|
313
|
+
], B = p("navigation.headerSettings.back");
|
|
320
314
|
return /* @__PURE__ */ t(
|
|
321
315
|
"div",
|
|
322
316
|
{
|
|
323
|
-
ref:
|
|
317
|
+
ref: I,
|
|
324
318
|
"data-component": "header-settings",
|
|
325
|
-
"data-component-id":
|
|
326
|
-
className: Ae({ align:
|
|
327
|
-
...
|
|
328
|
-
children: /* @__PURE__ */
|
|
329
|
-
|
|
319
|
+
"data-component-id": _,
|
|
320
|
+
className: Ae({ align: d, className: u }),
|
|
321
|
+
...te,
|
|
322
|
+
children: /* @__PURE__ */ m(
|
|
323
|
+
n.Root,
|
|
330
324
|
{
|
|
331
325
|
onOpenChange: (e) => {
|
|
332
326
|
e || (f.current = null, h("main"));
|
|
333
327
|
},
|
|
334
328
|
children: [
|
|
335
|
-
/* @__PURE__ */ t(
|
|
336
|
-
|
|
329
|
+
/* @__PURE__ */ t(n.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
|
|
330
|
+
pe,
|
|
337
331
|
{
|
|
338
332
|
size: R,
|
|
339
|
-
disabled:
|
|
340
|
-
icon: /* @__PURE__ */ t(
|
|
333
|
+
disabled: D,
|
|
334
|
+
icon: /* @__PURE__ */ t(ke, { "aria-hidden": !0 }),
|
|
341
335
|
"aria-label": p("navigation.headerSettings.trigger")
|
|
342
336
|
}
|
|
343
337
|
) }),
|
|
344
338
|
/* @__PURE__ */ t(
|
|
345
|
-
|
|
339
|
+
n.Content,
|
|
346
340
|
{
|
|
347
341
|
ref: k,
|
|
348
|
-
align:
|
|
349
|
-
collisionPadding:
|
|
350
|
-
className:
|
|
342
|
+
align: d,
|
|
343
|
+
collisionPadding: se,
|
|
344
|
+
className: De({ language: c === "language" }),
|
|
351
345
|
...c === "language" ? {
|
|
352
346
|
role: "dialog",
|
|
353
347
|
"aria-orientation": void 0,
|
|
354
348
|
"aria-label": K,
|
|
355
349
|
"aria-labelledby": void 0
|
|
356
350
|
} : {},
|
|
357
|
-
onKeyDownCapture:
|
|
351
|
+
onKeyDownCapture: ae,
|
|
358
352
|
onEscapeKeyDown: (e) => {
|
|
359
353
|
e.isComposing && e.preventDefault();
|
|
360
354
|
},
|
|
361
|
-
children: c === "language" ? /* @__PURE__ */
|
|
355
|
+
children: c === "language" ? /* @__PURE__ */ m(
|
|
362
356
|
"div",
|
|
363
357
|
{
|
|
364
358
|
role: "presentation",
|
|
@@ -370,47 +364,47 @@ const Ke = se(
|
|
|
370
364
|
},
|
|
371
365
|
children: [
|
|
372
366
|
/* @__PURE__ */ t(
|
|
373
|
-
|
|
367
|
+
ue,
|
|
374
368
|
{
|
|
375
369
|
intent: "ghost",
|
|
376
370
|
size: "sm",
|
|
377
371
|
className: "ds:w-full ds:justify-start ds:text-start ds:font-normal ds:min-h-[var(--min-target-size)] ds:sm:min-h-[var(--min-target-size)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:gap-[var(--spacing-sm)] ds:[&>span:last-child]:flex-1",
|
|
378
|
-
startIcon: /* @__PURE__ */ t(
|
|
372
|
+
startIcon: /* @__PURE__ */ t(J, { "aria-hidden": !0, className: "ds:size-4" }),
|
|
379
373
|
flipIconInRtl: !0,
|
|
380
|
-
onClick:
|
|
381
|
-
children: /* @__PURE__ */ t(A, { label:
|
|
374
|
+
onClick: C,
|
|
375
|
+
children: /* @__PURE__ */ t(A, { label: B, value: K })
|
|
382
376
|
}
|
|
383
377
|
),
|
|
384
|
-
/* @__PURE__ */ t(
|
|
385
|
-
/* @__PURE__ */ t(
|
|
378
|
+
/* @__PURE__ */ t(n.Separator, {}),
|
|
379
|
+
/* @__PURE__ */ t(Z.SearchList, {})
|
|
386
380
|
]
|
|
387
381
|
}
|
|
388
|
-
) : c === "appearance" ? /* @__PURE__ */
|
|
382
|
+
) : c === "appearance" ? /* @__PURE__ */ m($, { children: [
|
|
389
383
|
/* @__PURE__ */ t(
|
|
390
|
-
|
|
384
|
+
n.Item,
|
|
391
385
|
{
|
|
392
386
|
startIcon: /* @__PURE__ */ t(
|
|
393
|
-
|
|
387
|
+
J,
|
|
394
388
|
{
|
|
395
389
|
"aria-hidden": !0,
|
|
396
390
|
className: "ds:size-4 ds:rtl:-scale-x-100"
|
|
397
391
|
}
|
|
398
392
|
),
|
|
399
393
|
onSelect: (e) => {
|
|
400
|
-
e.preventDefault(),
|
|
394
|
+
e.preventDefault(), C();
|
|
401
395
|
},
|
|
402
|
-
children: /* @__PURE__ */ t(A, { label:
|
|
396
|
+
children: /* @__PURE__ */ t(A, { label: B, value: L })
|
|
403
397
|
}
|
|
404
398
|
),
|
|
405
|
-
/* @__PURE__ */ t(
|
|
399
|
+
/* @__PURE__ */ t(n.Separator, {}),
|
|
406
400
|
/* @__PURE__ */ t(
|
|
407
|
-
|
|
401
|
+
n.RadioGroup,
|
|
408
402
|
{
|
|
409
403
|
"aria-label": L,
|
|
410
404
|
value: o.theme,
|
|
411
405
|
onValueChange: (e) => o.setTheme(e),
|
|
412
406
|
children: x.map((e) => /* @__PURE__ */ t(
|
|
413
|
-
|
|
407
|
+
n.RadioItem,
|
|
414
408
|
{
|
|
415
409
|
value: e.value,
|
|
416
410
|
onSelect: (i) => i.preventDefault(),
|
|
@@ -420,15 +414,15 @@ const Ke = se(
|
|
|
420
414
|
))
|
|
421
415
|
}
|
|
422
416
|
)
|
|
423
|
-
] }) : /* @__PURE__ */
|
|
424
|
-
|
|
425
|
-
|
|
417
|
+
] }) : /* @__PURE__ */ m($, { children: [
|
|
418
|
+
g ? /* @__PURE__ */ t(
|
|
419
|
+
n.Item,
|
|
426
420
|
{
|
|
427
|
-
ref:
|
|
421
|
+
ref: M,
|
|
428
422
|
"aria-haspopup": "dialog",
|
|
429
|
-
"data-value":
|
|
423
|
+
"data-value": P.code,
|
|
430
424
|
endIcon: /* @__PURE__ */ t(
|
|
431
|
-
|
|
425
|
+
X,
|
|
432
426
|
{
|
|
433
427
|
"aria-hidden": !0,
|
|
434
428
|
className: "ds:size-4 ds:rtl:-scale-x-100"
|
|
@@ -437,7 +431,7 @@ const Ke = se(
|
|
|
437
431
|
onPointerDown: (e) => {
|
|
438
432
|
T.current = e.pointerType;
|
|
439
433
|
},
|
|
440
|
-
onKeyDown: (e) =>
|
|
434
|
+
onKeyDown: (e) => F(e, "language"),
|
|
441
435
|
onSelect: (e) => {
|
|
442
436
|
e.preventDefault(), h("language");
|
|
443
437
|
},
|
|
@@ -445,21 +439,21 @@ const Ke = se(
|
|
|
445
439
|
A,
|
|
446
440
|
{
|
|
447
441
|
label: K,
|
|
448
|
-
value:
|
|
449
|
-
lang:
|
|
442
|
+
value: P.nativeName,
|
|
443
|
+
lang: P.code
|
|
450
444
|
}
|
|
451
445
|
)
|
|
452
446
|
}
|
|
453
|
-
) : /* @__PURE__ */ t(
|
|
454
|
-
/* @__PURE__ */ t(
|
|
455
|
-
|
|
456
|
-
|
|
447
|
+
) : /* @__PURE__ */ t(Ce, { locale: b }),
|
|
448
|
+
/* @__PURE__ */ t(n.Separator, {}),
|
|
449
|
+
g ? /* @__PURE__ */ t(
|
|
450
|
+
n.Item,
|
|
457
451
|
{
|
|
458
|
-
ref:
|
|
452
|
+
ref: j,
|
|
459
453
|
"aria-haspopup": "menu",
|
|
460
454
|
"data-value": o.theme,
|
|
461
455
|
endIcon: /* @__PURE__ */ t(
|
|
462
|
-
|
|
456
|
+
X,
|
|
463
457
|
{
|
|
464
458
|
"aria-hidden": !0,
|
|
465
459
|
className: "ds:size-4 ds:rtl:-scale-x-100"
|
|
@@ -468,7 +462,7 @@ const Ke = se(
|
|
|
468
462
|
onPointerDown: (e) => {
|
|
469
463
|
T.current = e.pointerType;
|
|
470
464
|
},
|
|
471
|
-
onKeyDown: (e) =>
|
|
465
|
+
onKeyDown: (e) => F(e, "appearance"),
|
|
472
466
|
onSelect: (e) => {
|
|
473
467
|
e.preventDefault(), h("appearance");
|
|
474
468
|
},
|
|
@@ -476,14 +470,14 @@ const Ke = se(
|
|
|
476
470
|
A,
|
|
477
471
|
{
|
|
478
472
|
label: L,
|
|
479
|
-
value: ((
|
|
473
|
+
value: ((U = x.find(
|
|
480
474
|
(e) => e.value === o.theme
|
|
481
|
-
)) == null ? void 0 :
|
|
475
|
+
)) == null ? void 0 : U.label) ?? ""
|
|
482
476
|
}
|
|
483
477
|
)
|
|
484
478
|
}
|
|
485
479
|
) : /* @__PURE__ */ t(
|
|
486
|
-
|
|
480
|
+
n.ChoiceSub,
|
|
487
481
|
{
|
|
488
482
|
label: L,
|
|
489
483
|
value: o.theme,
|
|
@@ -492,9 +486,9 @@ const Ke = se(
|
|
|
492
486
|
}
|
|
493
487
|
),
|
|
494
488
|
/* @__PURE__ */ t(
|
|
495
|
-
|
|
489
|
+
n.SwitchItem,
|
|
496
490
|
{
|
|
497
|
-
checked:
|
|
491
|
+
checked: re,
|
|
498
492
|
onCheckedChange: (e) => o.setAccessibility(e ? "accessible" : "default"),
|
|
499
493
|
children: p("navigation.headerSettings.appearance.accessible")
|
|
500
494
|
}
|
|
@@ -513,4 +507,4 @@ Ke.displayName = "HeaderSettings";
|
|
|
513
507
|
export {
|
|
514
508
|
Ke as H
|
|
515
509
|
};
|
|
516
|
-
//# sourceMappingURL=header-settings-
|
|
510
|
+
//# sourceMappingURL=header-settings-Coh1r41O.js.map
|