highsoft-ui 1.0.78 → 1.0.80
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/Check-Cm4roSEj.js +23 -0
- package/dist/CookiePolicyModal-ChXNzv49.js +81 -0
- package/dist/XClose-CCu1vrNS.js +23 -0
- package/dist/components/Footer/CookiePolicyModal.d.ts +1 -0
- package/dist/components/Footer/CookiePolicyModal.js +9 -0
- package/dist/components/Footer/index.js +298 -559
- package/dist/components/Header/index.js +70 -84
- package/dist/components/Notification/index.js +47 -6
- package/dist/components/PrefPanel/index.js +28 -27
- package/dist/components/Search/index.d.ts +1 -0
- package/dist/components/Search/index.js +5483 -0
- package/dist/highsoft-ui.css +1 -1
- package/dist/index-BSgacgd-.js +234 -0
- package/dist/{index-CM3YgRXK.js → index-CMU31gjG.js} +208 -227
- package/dist/index-C_wmZvxw.js +30 -0
- package/dist/main.js +10 -10
- package/package.json +2 -1
- package/dist/index-pnL-sAld.js +0 -68
|
@@ -3,12 +3,14 @@ import { useRef as U, useState as T, useEffect as H } from "react";
|
|
|
3
3
|
import { a as Q, J as F, b as G } from "../../utils-C7rfowvr.js";
|
|
4
4
|
import { A as R } from "../../Announcement03-obPaH4LK.js";
|
|
5
5
|
import { _ as m } from "../../extends-hS2Bh-Yp.js";
|
|
6
|
-
import {
|
|
7
|
-
import { c as
|
|
8
|
-
import { Button as
|
|
6
|
+
import { X as $ } from "../../XClose-CCu1vrNS.js";
|
|
7
|
+
import { c as C } from "../../clsx-OuTLNxxd.js";
|
|
8
|
+
import { Button as d } from "../Button/index.js";
|
|
9
9
|
import { Container as z } from "../Container/index.js";
|
|
10
10
|
import { ThemedLogo as I } from "../Logo/index.js";
|
|
11
|
-
import { NewTag as
|
|
11
|
+
import { NewTag as Y } from "../NewTag/index.js";
|
|
12
|
+
import { Notification as D } from "../Notification/index.js";
|
|
13
|
+
import { Search as P } from "../Search/index.js";
|
|
12
14
|
import { PrefPanel as W } from "../PrefPanel/index.js";
|
|
13
15
|
var K = function(o) {
|
|
14
16
|
return /* @__PURE__ */ e("svg", m({
|
|
@@ -107,22 +109,6 @@ var K = function(o) {
|
|
|
107
109
|
})
|
|
108
110
|
}));
|
|
109
111
|
}, j = function(o) {
|
|
110
|
-
return /* @__PURE__ */ e("svg", m({
|
|
111
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
112
|
-
width: 24,
|
|
113
|
-
height: 24,
|
|
114
|
-
fill: "none",
|
|
115
|
-
viewBox: "0 0 24 24"
|
|
116
|
-
}, o, {
|
|
117
|
-
children: /* @__PURE__ */ e("path", {
|
|
118
|
-
stroke: "currentColor",
|
|
119
|
-
strokeLinecap: "round",
|
|
120
|
-
strokeLinejoin: "round",
|
|
121
|
-
strokeWidth: 2,
|
|
122
|
-
d: "m21 21-4.35-4.35M19 11c0 4.4183-3.5817 8-8 8s-8-3.5817-8-8 3.5817-8 8-8 8 3.5817 8 8"
|
|
123
|
-
})
|
|
124
|
-
}));
|
|
125
|
-
}, P = function(o) {
|
|
126
112
|
return /* @__PURE__ */ e("svg", m({
|
|
127
113
|
xmlns: "http://www.w3.org/2000/svg",
|
|
128
114
|
width: 24,
|
|
@@ -171,7 +157,7 @@ var K = function(o) {
|
|
|
171
157
|
})
|
|
172
158
|
}));
|
|
173
159
|
};
|
|
174
|
-
const oe = "m_QBtq_buttons", re = "m_QBtq_container", se = "m_QBtq_gpt", ie = "m_QBtq_header", ce = "m_QBtq_icon", ae = "m_QBtq_icons", le = "m_QBtq_links", he = "m_QBtq_logo", de = "m_QBtq_main", me = "m_QBtq_menu", ue = "m_QBtq_mobile", pe = "m_QBtq_mobileOverlay", we = "m_QBtq_open", ge = "m_QBtq_outer",
|
|
160
|
+
const oe = "m_QBtq_buttons", re = "m_QBtq_container", se = "m_QBtq_gpt", ie = "m_QBtq_header", ce = "m_QBtq_icon", ae = "m_QBtq_icons", le = "m_QBtq_links", he = "m_QBtq_logo", de = "m_QBtq_main", me = "m_QBtq_menu", ue = "m_QBtq_mobile", pe = "m_QBtq_mobileOverlay", we = "m_QBtq_open", ge = "m_QBtq_outer", fe = "m_QBtq_selectableIcon", ve = "m_QBtq_selected", ke = "m_QBtq_selectedIcon", _e = "m_QBtq_skip", Ce = "m_QBtq_sub", be = "m_QBtq_subContainer", xe = "m_QBtq_subTitle", t = {
|
|
175
161
|
buttons: oe,
|
|
176
162
|
container: re,
|
|
177
163
|
gpt: se,
|
|
@@ -186,12 +172,12 @@ const oe = "m_QBtq_buttons", re = "m_QBtq_container", se = "m_QBtq_gpt", ie = "m
|
|
|
186
172
|
mobileOverlay: pe,
|
|
187
173
|
open: we,
|
|
188
174
|
outer: ge,
|
|
189
|
-
selectableIcon:
|
|
190
|
-
selected:
|
|
175
|
+
selectableIcon: fe,
|
|
176
|
+
selected: ve,
|
|
191
177
|
selectedIcon: ke,
|
|
192
178
|
skip: _e,
|
|
193
|
-
sub:
|
|
194
|
-
subContainer:
|
|
179
|
+
sub: Ce,
|
|
180
|
+
subContainer: be,
|
|
195
181
|
subTitle: xe
|
|
196
182
|
}, V = [
|
|
197
183
|
{
|
|
@@ -225,7 +211,7 @@ const oe = "m_QBtq_buttons", re = "m_QBtq_container", se = "m_QBtq_gpt", ie = "m
|
|
|
225
211
|
icon: /* @__PURE__ */ e(R, {})
|
|
226
212
|
}
|
|
227
213
|
];
|
|
228
|
-
function
|
|
214
|
+
function h(c, o) {
|
|
229
215
|
return o ? c.replace(o, "") : c;
|
|
230
216
|
}
|
|
231
217
|
function Be({
|
|
@@ -236,14 +222,14 @@ function Be({
|
|
|
236
222
|
waitForMount: l
|
|
237
223
|
}) {
|
|
238
224
|
const w = G();
|
|
239
|
-
return /* @__PURE__ */ e("div", { className:
|
|
240
|
-
({ title:
|
|
241
|
-
const N = typeof window < "u" && window.location.origin || "http://example.com", k = new URL(
|
|
225
|
+
return /* @__PURE__ */ e("div", { className: C(t.sub, t.outer), children: /* @__PURE__ */ e(z, { className: t.subContainer, as: "ul", children: c.map(
|
|
226
|
+
({ title: f, url: b, icon: x, selectedIcon: B, tag: S, tagVariant: v = "success" }, u) => {
|
|
227
|
+
const N = typeof window < "u" && window.location.origin || "http://example.com", k = new URL(b, N), _ = (!l || w) && k.origin === N && k.pathname === a;
|
|
242
228
|
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
|
|
243
229
|
o,
|
|
244
230
|
{
|
|
245
|
-
href:
|
|
246
|
-
className:
|
|
231
|
+
href: h(b, p),
|
|
232
|
+
className: C({
|
|
247
233
|
[t.selectableIcon]: B,
|
|
248
234
|
[t.selected]: _
|
|
249
235
|
}),
|
|
@@ -253,8 +239,8 @@ function Be({
|
|
|
253
239
|
/* @__PURE__ */ e("span", { className: t.icon, children: x })
|
|
254
240
|
] }),
|
|
255
241
|
/* @__PURE__ */ i("span", { className: t.subTitle, children: [
|
|
256
|
-
|
|
257
|
-
|
|
242
|
+
f,
|
|
243
|
+
S && /* @__PURE__ */ e(Y, { variant: v, icon: !1 })
|
|
258
244
|
] })
|
|
259
245
|
]
|
|
260
246
|
}
|
|
@@ -262,7 +248,7 @@ function Be({
|
|
|
262
248
|
}
|
|
263
249
|
) }) });
|
|
264
250
|
}
|
|
265
|
-
function
|
|
251
|
+
function Oe({
|
|
266
252
|
subItems: c,
|
|
267
253
|
children: o,
|
|
268
254
|
notifications: p = [],
|
|
@@ -270,23 +256,23 @@ function Pe({
|
|
|
270
256
|
link: a = "a",
|
|
271
257
|
host: l = "https://www.highcharts.com",
|
|
272
258
|
pathname: w,
|
|
273
|
-
topCssVariable:
|
|
259
|
+
topCssVariable: f
|
|
274
260
|
}) {
|
|
275
|
-
const
|
|
261
|
+
const b = !!w;
|
|
276
262
|
w = w || (typeof window < "u" ? window.location.pathname : "");
|
|
277
|
-
const x = Q("(max-width: 374px)"), B = Q("(max-width: 849px)"),
|
|
263
|
+
const x = Q("(max-width: 374px)"), B = Q("(max-width: 849px)"), S = Q("(min-width: 850px) and (max-width: 999px)"), v = U(null), [u, N] = T(!1), [k, _] = T([]);
|
|
278
264
|
H(() => {
|
|
279
265
|
let r = window.scrollY, n = -82, s = n;
|
|
280
|
-
|
|
266
|
+
f && document.documentElement.style.setProperty("--header-top", `${n}px`);
|
|
281
267
|
const g = () => {
|
|
282
|
-
const
|
|
283
|
-
n -=
|
|
268
|
+
const q = window.scrollY, M = q - r;
|
|
269
|
+
n -= M, n < -82 ? n = -82 : n > 0 && (n = 0), v.current && n !== s && (v.current.style.top = `${n}px`, f && document.documentElement.style.setProperty(
|
|
284
270
|
"--header-top",
|
|
285
271
|
`${n}px`
|
|
286
|
-
)), r =
|
|
272
|
+
)), r = q, s = n;
|
|
287
273
|
};
|
|
288
274
|
return window.addEventListener("scroll", g), () => window.removeEventListener("scroll", g);
|
|
289
|
-
}, [
|
|
275
|
+
}, [f]), H(() => {
|
|
290
276
|
if (p.length) {
|
|
291
277
|
const r = localStorage.getItem("notifications");
|
|
292
278
|
if (r) {
|
|
@@ -300,12 +286,12 @@ function Pe({
|
|
|
300
286
|
_(p);
|
|
301
287
|
}
|
|
302
288
|
}, [p]);
|
|
303
|
-
const
|
|
289
|
+
const y = (r) => {
|
|
304
290
|
if (r.preventDefault(), !(r.nativeEvent instanceof KeyboardEvent) || r.nativeEvent.code === "Enter" || r.nativeEvent.code === "Space") {
|
|
305
291
|
const n = document.querySelector("main");
|
|
306
292
|
n && (n.scrollIntoView(), n.getAttribute("tabindex") !== "-1" && n.setAttribute("tabindex", "-1"), n.focus());
|
|
307
293
|
}
|
|
308
|
-
},
|
|
294
|
+
}, L = () => {
|
|
309
295
|
N(!u);
|
|
310
296
|
}, A = (r) => {
|
|
311
297
|
_(k.filter((s) => !s.id || s.id !== r));
|
|
@@ -321,30 +307,30 @@ function Pe({
|
|
|
321
307
|
})
|
|
322
308
|
);
|
|
323
309
|
};
|
|
324
|
-
return /* @__PURE__ */ e(F, { children: /* @__PURE__ */ i("header", { className: t.header, ref:
|
|
310
|
+
return /* @__PURE__ */ e(F, { children: /* @__PURE__ */ i("header", { className: t.header, ref: v, children: [
|
|
325
311
|
k?.map(
|
|
326
|
-
({ id: r, title: n, description: s, variant: g, closable:
|
|
327
|
-
|
|
312
|
+
({ id: r, title: n, description: s, variant: g, closable: q }, M) => /* @__PURE__ */ e(
|
|
313
|
+
D,
|
|
328
314
|
{
|
|
329
315
|
description: s,
|
|
330
316
|
variant: g,
|
|
331
|
-
closable:
|
|
317
|
+
closable: q,
|
|
332
318
|
onClose: () => A(r),
|
|
333
319
|
children: n
|
|
334
320
|
},
|
|
335
|
-
|
|
321
|
+
M
|
|
336
322
|
)
|
|
337
323
|
),
|
|
338
|
-
/* @__PURE__ */ e("div", { className:
|
|
324
|
+
/* @__PURE__ */ e("div", { className: C(t.main, t.outer), children: /* @__PURE__ */ i(z, { as: "nav", className: t.container, children: [
|
|
339
325
|
/* @__PURE__ */ e(
|
|
340
|
-
|
|
326
|
+
d,
|
|
341
327
|
{
|
|
342
328
|
as: "a",
|
|
343
329
|
className: t.skip,
|
|
344
330
|
size: 500,
|
|
345
331
|
tabIndex: "0",
|
|
346
|
-
onClick:
|
|
347
|
-
onKeyPress:
|
|
332
|
+
onClick: y,
|
|
333
|
+
onKeyPress: y,
|
|
348
334
|
children: "Skip to content"
|
|
349
335
|
}
|
|
350
336
|
),
|
|
@@ -352,54 +338,54 @@ function Pe({
|
|
|
352
338
|
a,
|
|
353
339
|
{
|
|
354
340
|
className: t.logo,
|
|
355
|
-
href:
|
|
356
|
-
children: /* @__PURE__ */ e(I, { showText: !
|
|
341
|
+
href: h("https://www.highcharts.com/", l),
|
|
342
|
+
children: /* @__PURE__ */ e(I, { showText: !S && !x })
|
|
357
343
|
}
|
|
358
344
|
),
|
|
359
345
|
/* @__PURE__ */ e("ul", { className: t.links, children: V.map(({ title: r, url: n }, s) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
360
|
-
|
|
346
|
+
d,
|
|
361
347
|
{
|
|
362
348
|
variant: "plain",
|
|
363
349
|
size: 300,
|
|
364
350
|
as: a,
|
|
365
|
-
href:
|
|
351
|
+
href: h(n, l),
|
|
366
352
|
children: r
|
|
367
353
|
}
|
|
368
354
|
) }, s)) }),
|
|
369
355
|
/* @__PURE__ */ i("div", { className: t.buttons, children: [
|
|
370
356
|
/* @__PURE__ */ i(
|
|
371
|
-
|
|
357
|
+
d,
|
|
372
358
|
{
|
|
373
359
|
variant: "transparent",
|
|
374
360
|
as: a,
|
|
375
|
-
href:
|
|
361
|
+
href: h(
|
|
376
362
|
"https://www.highcharts.com/chat/gpt/",
|
|
377
363
|
l
|
|
378
364
|
),
|
|
379
365
|
children: [
|
|
380
366
|
/* @__PURE__ */ e("span", { className: t.gpt, children: "Highcharts GPT" }),
|
|
381
|
-
/* @__PURE__ */ e(
|
|
367
|
+
/* @__PURE__ */ e(j, {})
|
|
382
368
|
]
|
|
383
369
|
}
|
|
384
370
|
),
|
|
385
|
-
/* @__PURE__ */ e(
|
|
371
|
+
/* @__PURE__ */ e(P, {}),
|
|
386
372
|
/* @__PURE__ */ e(W, {}),
|
|
387
373
|
/* @__PURE__ */ e(
|
|
388
|
-
|
|
374
|
+
d,
|
|
389
375
|
{
|
|
390
376
|
variant: "brand",
|
|
391
377
|
as: a,
|
|
392
|
-
href:
|
|
378
|
+
href: h("https://shop.highcharts.com/account", l),
|
|
393
379
|
"aria-label": "Login",
|
|
394
380
|
children: /* @__PURE__ */ e(O, {})
|
|
395
381
|
}
|
|
396
382
|
),
|
|
397
383
|
/* @__PURE__ */ i(
|
|
398
|
-
|
|
384
|
+
d,
|
|
399
385
|
{
|
|
400
386
|
variant: "success",
|
|
401
387
|
as: a,
|
|
402
|
-
href:
|
|
388
|
+
href: h(
|
|
403
389
|
"https://www.highcharts.com/download/",
|
|
404
390
|
l
|
|
405
391
|
),
|
|
@@ -410,14 +396,14 @@ function Pe({
|
|
|
410
396
|
}
|
|
411
397
|
),
|
|
412
398
|
/* @__PURE__ */ i(
|
|
413
|
-
|
|
399
|
+
d,
|
|
414
400
|
{
|
|
415
401
|
variant: u ? "white" : "transparent",
|
|
416
402
|
className: t.menu,
|
|
417
|
-
onClick:
|
|
403
|
+
onClick: L,
|
|
418
404
|
children: [
|
|
419
405
|
u ? "Close" : "Menu",
|
|
420
|
-
u ? /* @__PURE__ */ e(
|
|
406
|
+
u ? /* @__PURE__ */ e($, {}) : /* @__PURE__ */ e(ee, {})
|
|
421
407
|
]
|
|
422
408
|
}
|
|
423
409
|
)
|
|
@@ -430,7 +416,7 @@ function Pe({
|
|
|
430
416
|
link: a,
|
|
431
417
|
host: l,
|
|
432
418
|
pathname: w,
|
|
433
|
-
waitForMount: !
|
|
419
|
+
waitForMount: !b
|
|
434
420
|
}
|
|
435
421
|
),
|
|
436
422
|
o,
|
|
@@ -438,14 +424,14 @@ function Pe({
|
|
|
438
424
|
/* @__PURE__ */ e(
|
|
439
425
|
"div",
|
|
440
426
|
{
|
|
441
|
-
className:
|
|
442
|
-
onClick:
|
|
427
|
+
className: C(t.mobileOverlay, { [t.open]: u }),
|
|
428
|
+
onClick: L
|
|
443
429
|
}
|
|
444
430
|
),
|
|
445
431
|
/* @__PURE__ */ i(
|
|
446
432
|
"nav",
|
|
447
433
|
{
|
|
448
|
-
className:
|
|
434
|
+
className: C(t.mobile, {
|
|
449
435
|
[t.open]: u
|
|
450
436
|
}),
|
|
451
437
|
children: [
|
|
@@ -454,38 +440,38 @@ function Pe({
|
|
|
454
440
|
a,
|
|
455
441
|
{
|
|
456
442
|
className: t.logo,
|
|
457
|
-
href:
|
|
443
|
+
href: h("https://www.highcharts.com/", l),
|
|
458
444
|
children: /* @__PURE__ */ e(I, { showText: !x })
|
|
459
445
|
}
|
|
460
446
|
),
|
|
461
447
|
/* @__PURE__ */ i("div", { className: t.buttons, children: [
|
|
462
448
|
/* @__PURE__ */ i(
|
|
463
|
-
|
|
449
|
+
d,
|
|
464
450
|
{
|
|
465
451
|
variant: "transparent",
|
|
466
452
|
as: a,
|
|
467
|
-
href:
|
|
453
|
+
href: h(
|
|
468
454
|
"https://www.highcharts.com/chat/gpt/",
|
|
469
455
|
l
|
|
470
456
|
),
|
|
471
457
|
children: [
|
|
472
458
|
/* @__PURE__ */ e("span", { className: t.gpt, children: "Highcharts GPT" }),
|
|
473
|
-
/* @__PURE__ */ e(
|
|
459
|
+
/* @__PURE__ */ e(j, {})
|
|
474
460
|
]
|
|
475
461
|
}
|
|
476
462
|
),
|
|
477
|
-
/* @__PURE__ */ e(
|
|
463
|
+
/* @__PURE__ */ e(P, {}),
|
|
478
464
|
/* @__PURE__ */ e(W, {})
|
|
479
465
|
] })
|
|
480
466
|
] }),
|
|
481
467
|
/* @__PURE__ */ i("div", { className: t.buttons, children: [
|
|
482
468
|
/* @__PURE__ */ i(
|
|
483
|
-
|
|
469
|
+
d,
|
|
484
470
|
{
|
|
485
471
|
variant: "brand",
|
|
486
472
|
fullWidth: !0,
|
|
487
473
|
as: a,
|
|
488
|
-
href:
|
|
474
|
+
href: h(
|
|
489
475
|
"https://shop.highcharts.com/account",
|
|
490
476
|
l
|
|
491
477
|
),
|
|
@@ -496,12 +482,12 @@ function Pe({
|
|
|
496
482
|
}
|
|
497
483
|
),
|
|
498
484
|
/* @__PURE__ */ i(
|
|
499
|
-
|
|
485
|
+
d,
|
|
500
486
|
{
|
|
501
487
|
variant: "success",
|
|
502
488
|
fullWidth: !0,
|
|
503
489
|
as: a,
|
|
504
|
-
href:
|
|
490
|
+
href: h(
|
|
505
491
|
"https://www.highcharts.com/download/",
|
|
506
492
|
l
|
|
507
493
|
),
|
|
@@ -513,13 +499,13 @@ function Pe({
|
|
|
513
499
|
)
|
|
514
500
|
] }),
|
|
515
501
|
/* @__PURE__ */ e("ul", { className: t.links, children: V.map(({ title: r, url: n, icon: s }, g) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
|
|
516
|
-
|
|
502
|
+
d,
|
|
517
503
|
{
|
|
518
504
|
variant: "plain",
|
|
519
505
|
size: 500,
|
|
520
506
|
fullWidth: !0,
|
|
521
507
|
as: a,
|
|
522
|
-
href:
|
|
508
|
+
href: h(n, l),
|
|
523
509
|
children: [
|
|
524
510
|
s,
|
|
525
511
|
r
|
|
@@ -533,6 +519,6 @@ function Pe({
|
|
|
533
519
|
] }) });
|
|
534
520
|
}
|
|
535
521
|
export {
|
|
536
|
-
|
|
522
|
+
Oe as Header,
|
|
537
523
|
Be as SubHeader
|
|
538
524
|
};
|
|
@@ -1,9 +1,50 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
1
|
+
import { jsx as n, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
4
|
-
import "../../clsx-OuTLNxxd.js";
|
|
5
|
-
import "../Button/index.js";
|
|
6
|
-
import "../Container/index.js";
|
|
3
|
+
import { X as r } from "../../XClose-CCu1vrNS.js";
|
|
4
|
+
import { c as l } from "../../clsx-OuTLNxxd.js";
|
|
5
|
+
import { Button as R } from "../Button/index.js";
|
|
6
|
+
import { Container as d } from "../Container/index.js";
|
|
7
|
+
const m = "MhRkRW_attention", f = "MhRkRW_close", h = "MhRkRW_container", p = "MhRkRW_danger", u = "MhRkRW_description", k = "MhRkRW_notification", M = "MhRkRW_success", W = "MhRkRW_title", t = {
|
|
8
|
+
attention: m,
|
|
9
|
+
close: f,
|
|
10
|
+
container: h,
|
|
11
|
+
danger: p,
|
|
12
|
+
default: "MhRkRW_default",
|
|
13
|
+
description: u,
|
|
14
|
+
notification: k,
|
|
15
|
+
success: M,
|
|
16
|
+
title: W
|
|
17
|
+
};
|
|
18
|
+
function j({
|
|
19
|
+
children: e,
|
|
20
|
+
variant: o = "default",
|
|
21
|
+
description: i,
|
|
22
|
+
closable: s = !0,
|
|
23
|
+
onClose: c
|
|
24
|
+
}) {
|
|
25
|
+
return /* @__PURE__ */ n(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
className: l(t.notification, t[o]),
|
|
29
|
+
"data-theme": "light",
|
|
30
|
+
children: /* @__PURE__ */ a(d, { className: t.container, children: [
|
|
31
|
+
/* @__PURE__ */ n("span", { className: t.title, children: e }),
|
|
32
|
+
i && /* @__PURE__ */ n("span", { className: t.description, children: i }),
|
|
33
|
+
s && /* @__PURE__ */ n(
|
|
34
|
+
R,
|
|
35
|
+
{
|
|
36
|
+
variant: o === "default" ? "brand" : "transparent",
|
|
37
|
+
size: 100,
|
|
38
|
+
className: t.close,
|
|
39
|
+
"aria-label": "Close notification",
|
|
40
|
+
onClick: () => c?.(),
|
|
41
|
+
children: /* @__PURE__ */ n(r, {})
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
] })
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
7
48
|
export {
|
|
8
|
-
|
|
49
|
+
j as Notification
|
|
9
50
|
};
|
|
@@ -2,13 +2,14 @@ import { jsx as w, jsxs as q, Fragment as ne } from "react/jsx-runtime";
|
|
|
2
2
|
import { z as Qe, b as qe } from "../../utils-C7rfowvr.js";
|
|
3
3
|
import * as g from "react";
|
|
4
4
|
import { useLayoutEffect as Ge } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import { _ as
|
|
7
|
-
import { c as
|
|
8
|
-
import { Button as
|
|
5
|
+
import { C as Ue } from "../../Check-Cm4roSEj.js";
|
|
6
|
+
import { _ as yt } from "../../extends-hS2Bh-Yp.js";
|
|
7
|
+
import { c as Ze } from "../../clsx-OuTLNxxd.js";
|
|
8
|
+
import { Button as Je } from "../Button/index.js";
|
|
9
|
+
import { h as Mt, P as ft, c as oe, u as bt, f as tn, e as en, b as nn, d as st, g as re, i as on, j as rn, R as sn, a as cn, k as an, F as ln, D as fn } from "../../index-CMU31gjG.js";
|
|
9
10
|
import * as un from "react-dom";
|
|
10
11
|
var dn = function(e) {
|
|
11
|
-
return /* @__PURE__ */ w("svg",
|
|
12
|
+
return /* @__PURE__ */ w("svg", yt({
|
|
12
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13
14
|
width: 24,
|
|
14
15
|
height: 24,
|
|
@@ -24,7 +25,7 @@ var dn = function(e) {
|
|
|
24
25
|
})
|
|
25
26
|
}));
|
|
26
27
|
}, pn = function(e) {
|
|
27
|
-
return /* @__PURE__ */ w("svg",
|
|
28
|
+
return /* @__PURE__ */ w("svg", yt({
|
|
28
29
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29
30
|
width: 24,
|
|
30
31
|
height: 24,
|
|
@@ -40,7 +41,7 @@ var dn = function(e) {
|
|
|
40
41
|
})
|
|
41
42
|
}));
|
|
42
43
|
}, hn = function(e) {
|
|
43
|
-
return /* @__PURE__ */ w("svg",
|
|
44
|
+
return /* @__PURE__ */ w("svg", yt({
|
|
44
45
|
xmlns: "http://www.w3.org/2000/svg",
|
|
45
46
|
width: 24,
|
|
46
47
|
height: 24,
|
|
@@ -56,7 +57,7 @@ var dn = function(e) {
|
|
|
56
57
|
})
|
|
57
58
|
}));
|
|
58
59
|
}, mn = function(e) {
|
|
59
|
-
return /* @__PURE__ */ w("svg",
|
|
60
|
+
return /* @__PURE__ */ w("svg", yt({
|
|
60
61
|
xmlns: "http://www.w3.org/2000/svg",
|
|
61
62
|
width: 24,
|
|
62
63
|
height: 24,
|
|
@@ -1427,7 +1428,7 @@ var ko = ge, It = "Popper", [we, ve] = oe(It), [Mo, xe] = we(It), ye = (t) => {
|
|
|
1427
1428
|
ye.displayName = It;
|
|
1428
1429
|
var be = "PopperAnchor", Ae = g.forwardRef(
|
|
1429
1430
|
(t, e) => {
|
|
1430
|
-
const { __scopePopper: n, virtualRef: o, ...r } = t, i = xe(be, n), s = g.useRef(null), c =
|
|
1431
|
+
const { __scopePopper: n, virtualRef: o, ...r } = t, i = xe(be, n), s = g.useRef(null), c = bt(e, s), a = g.useRef(null);
|
|
1431
1432
|
return g.useEffect(() => {
|
|
1432
1433
|
const l = a.current;
|
|
1433
1434
|
a.current = o?.current || s.current, l !== a.current && i.onAnchorChange(a.current);
|
|
@@ -1452,7 +1453,7 @@ var Bt = "PopperContent", [Do, Lo] = we(Bt), Pe = g.forwardRef(
|
|
|
1452
1453
|
updatePositionStrategy: d = "optimized",
|
|
1453
1454
|
onPlaced: h,
|
|
1454
1455
|
...m
|
|
1455
|
-
} = t, x = xe(Bt, n), [v, y] = g.useState(null), P =
|
|
1456
|
+
} = t, x = xe(Bt, n), [v, y] = g.useState(null), P = bt(e, (it) => y(it)), [b, A] = g.useState(null), O = gn(b), R = O?.width ?? 0, L = O?.height ?? 0, F = o + (i !== "center" ? "-" + i : ""), D = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, T = Array.isArray(l) ? l : [l], N = T.length > 0, E = {
|
|
1456
1457
|
padding: D,
|
|
1457
1458
|
boundary: T.filter(To),
|
|
1458
1459
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -1487,7 +1488,7 @@ var Bt = "PopperContent", [Do, Lo] = we(Bt), Pe = g.forwardRef(
|
|
|
1487
1488
|
No({ arrowWidth: R, arrowHeight: L }),
|
|
1488
1489
|
p && Oo({ strategy: "referenceHidden", ...E })
|
|
1489
1490
|
]
|
|
1490
|
-
}), [_, z] = Oe(k), Vt =
|
|
1491
|
+
}), [_, z] = Oe(k), Vt = tn(h);
|
|
1491
1492
|
Mt(() => {
|
|
1492
1493
|
M && Vt?.();
|
|
1493
1494
|
}, [M, Vt]);
|
|
@@ -1626,7 +1627,7 @@ var Fo = ye, Se = Ae, $o = Pe, Wo = Re, Ot = "Popover", [Ee] = oe(Ot, [
|
|
|
1626
1627
|
defaultOpen: r,
|
|
1627
1628
|
onOpenChange: i,
|
|
1628
1629
|
modal: s = !1
|
|
1629
|
-
} = t, c = dt(e), a = g.useRef(null), [l, f] = g.useState(!1), [u, p] =
|
|
1630
|
+
} = t, c = dt(e), a = g.useRef(null), [l, f] = g.useState(!1), [u, p] = en({
|
|
1630
1631
|
prop: o,
|
|
1631
1632
|
defaultProp: r ?? !1,
|
|
1632
1633
|
onChange: i,
|
|
@@ -1636,7 +1637,7 @@ var Fo = ye, Se = Ae, $o = Pe, Wo = Re, Ot = "Popover", [Ee] = oe(Ot, [
|
|
|
1636
1637
|
Ho,
|
|
1637
1638
|
{
|
|
1638
1639
|
scope: e,
|
|
1639
|
-
contentId:
|
|
1640
|
+
contentId: nn(),
|
|
1640
1641
|
triggerRef: a,
|
|
1641
1642
|
open: u,
|
|
1642
1643
|
onOpenChange: p,
|
|
@@ -1659,7 +1660,7 @@ var Me = "PopoverAnchor", De = g.forwardRef(
|
|
|
1659
1660
|
De.displayName = Me;
|
|
1660
1661
|
var Le = "PopoverTrigger", _e = g.forwardRef(
|
|
1661
1662
|
(t, e) => {
|
|
1662
|
-
const { __scopePopover: n, ...o } = t, r = Z(Le, n), i = dt(n), s =
|
|
1663
|
+
const { __scopePopover: n, ...o } = t, r = Z(Le, n), i = dt(n), s = bt(e, r.triggerRef), c = /* @__PURE__ */ w(
|
|
1663
1664
|
ft.button,
|
|
1664
1665
|
{
|
|
1665
1666
|
type: "button",
|
|
@@ -1680,7 +1681,7 @@ var zt = "PopoverPortal", [Io, Bo] = Ee(zt, {
|
|
|
1680
1681
|
forceMount: void 0
|
|
1681
1682
|
}), Te = (t) => {
|
|
1682
1683
|
const { __scopePopover: e, forceMount: n, children: o, container: r } = t, i = Z(zt, e);
|
|
1683
|
-
return /* @__PURE__ */ w(Io, { scope: e, forceMount: n, children: /* @__PURE__ */ w(re, { present: n || i.open, children: /* @__PURE__ */ w(
|
|
1684
|
+
return /* @__PURE__ */ w(Io, { scope: e, forceMount: n, children: /* @__PURE__ */ w(re, { present: n || i.open, children: /* @__PURE__ */ w(on, { asChild: !0, container: r, children: o }) }) });
|
|
1684
1685
|
};
|
|
1685
1686
|
Te.displayName = zt;
|
|
1686
1687
|
var nt = "PopoverContent", Ne = g.forwardRef(
|
|
@@ -1690,13 +1691,13 @@ var nt = "PopoverContent", Ne = g.forwardRef(
|
|
|
1690
1691
|
}
|
|
1691
1692
|
);
|
|
1692
1693
|
Ne.displayName = nt;
|
|
1693
|
-
var zo =
|
|
1694
|
+
var zo = cn("PopoverContent.RemoveScroll"), Vo = g.forwardRef(
|
|
1694
1695
|
(t, e) => {
|
|
1695
|
-
const n = Z(nt, t.__scopePopover), o = g.useRef(null), r =
|
|
1696
|
+
const n = Z(nt, t.__scopePopover), o = g.useRef(null), r = bt(e, o), i = g.useRef(!1);
|
|
1696
1697
|
return g.useEffect(() => {
|
|
1697
1698
|
const s = o.current;
|
|
1698
|
-
if (s) return
|
|
1699
|
-
}, []), /* @__PURE__ */ w(
|
|
1699
|
+
if (s) return rn(s);
|
|
1700
|
+
}, []), /* @__PURE__ */ w(sn, { as: zo, allowPinchZoom: !0, children: /* @__PURE__ */ w(
|
|
1700
1701
|
Fe,
|
|
1701
1702
|
{
|
|
1702
1703
|
...t,
|
|
@@ -1757,8 +1758,8 @@ var zo = on("PopoverContent.RemoveScroll"), Vo = g.forwardRef(
|
|
|
1757
1758
|
onInteractOutside: f,
|
|
1758
1759
|
...u
|
|
1759
1760
|
} = t, p = Z(nt, n), d = dt(n);
|
|
1760
|
-
return
|
|
1761
|
-
|
|
1761
|
+
return an(), /* @__PURE__ */ w(
|
|
1762
|
+
ln,
|
|
1762
1763
|
{
|
|
1763
1764
|
asChild: !0,
|
|
1764
1765
|
loop: !0,
|
|
@@ -1766,7 +1767,7 @@ var zo = on("PopoverContent.RemoveScroll"), Vo = g.forwardRef(
|
|
|
1766
1767
|
onMountAutoFocus: r,
|
|
1767
1768
|
onUnmountAutoFocus: i,
|
|
1768
1769
|
children: /* @__PURE__ */ w(
|
|
1769
|
-
|
|
1770
|
+
fn,
|
|
1770
1771
|
{
|
|
1771
1772
|
asChild: !0,
|
|
1772
1773
|
disableOutsidePointerEvents: s,
|
|
@@ -1839,20 +1840,20 @@ function kt({ children: t, id: e, ...n }) {
|
|
|
1839
1840
|
{
|
|
1840
1841
|
type: "radio",
|
|
1841
1842
|
id: e,
|
|
1842
|
-
className:
|
|
1843
|
+
className: Ze(ct.radioInput, "sr-only"),
|
|
1843
1844
|
...n
|
|
1844
1845
|
}
|
|
1845
1846
|
),
|
|
1846
1847
|
/* @__PURE__ */ q("label", { htmlFor: e, className: ct.radio, children: [
|
|
1847
1848
|
t,
|
|
1848
|
-
/* @__PURE__ */ w(
|
|
1849
|
+
/* @__PURE__ */ w(Ue, { className: ct.check })
|
|
1849
1850
|
] })
|
|
1850
1851
|
] });
|
|
1851
1852
|
}
|
|
1852
|
-
function
|
|
1853
|
+
function dr() {
|
|
1853
1854
|
const { theme: t, systemTheme: e, setTheme: n } = Qe(), o = qe();
|
|
1854
1855
|
return /* @__PURE__ */ q(Qo, { children: [
|
|
1855
|
-
/* @__PURE__ */ w(Go, { asChild: !0, children: /* @__PURE__ */ q(
|
|
1856
|
+
/* @__PURE__ */ w(Go, { asChild: !0, children: /* @__PURE__ */ q(Je, { variant: "transparent", "aria-label": "Preferences", children: [
|
|
1856
1857
|
/* @__PURE__ */ w(hn, {}),
|
|
1857
1858
|
/* @__PURE__ */ w(qo, { className: ct.anchor })
|
|
1858
1859
|
] }) }),
|
|
@@ -1911,6 +1912,6 @@ function ur() {
|
|
|
1911
1912
|
] });
|
|
1912
1913
|
}
|
|
1913
1914
|
export {
|
|
1914
|
-
|
|
1915
|
+
dr as PrefPanel,
|
|
1915
1916
|
kt as PrefRadio
|
|
1916
1917
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Search(): import("react/jsx-runtime").JSX.Element;
|