highsoft-ui 1.0.79 → 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.
@@ -4,12 +4,13 @@ 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
6
  import { X as $ } from "../../XClose-CCu1vrNS.js";
7
- import { c as b } from "../../clsx-OuTLNxxd.js";
8
- import { Button as h } from "../Button/index.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
11
  import { NewTag as Y } from "../NewTag/index.js";
12
12
  import { Notification as D } from "../Notification/index.js";
13
+ import { Search as P } from "../Search/index.js";
13
14
  import { PrefPanel as W } from "../PrefPanel/index.js";
14
15
  var K = function(o) {
15
16
  return /* @__PURE__ */ e("svg", m({
@@ -108,22 +109,6 @@ var K = function(o) {
108
109
  })
109
110
  }));
110
111
  }, j = function(o) {
111
- return /* @__PURE__ */ e("svg", m({
112
- xmlns: "http://www.w3.org/2000/svg",
113
- width: 24,
114
- height: 24,
115
- fill: "none",
116
- viewBox: "0 0 24 24"
117
- }, o, {
118
- children: /* @__PURE__ */ e("path", {
119
- stroke: "currentColor",
120
- strokeLinecap: "round",
121
- strokeLinejoin: "round",
122
- strokeWidth: 2,
123
- 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"
124
- })
125
- }));
126
- }, P = function(o) {
127
112
  return /* @__PURE__ */ e("svg", m({
128
113
  xmlns: "http://www.w3.org/2000/svg",
129
114
  width: 24,
@@ -172,7 +157,7 @@ var K = function(o) {
172
157
  })
173
158
  }));
174
159
  };
175
- 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", ve = "m_QBtq_selectableIcon", fe = "m_QBtq_selected", ke = "m_QBtq_selectedIcon", _e = "m_QBtq_skip", be = "m_QBtq_sub", Ce = "m_QBtq_subContainer", xe = "m_QBtq_subTitle", t = {
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 = {
176
161
  buttons: oe,
177
162
  container: re,
178
163
  gpt: se,
@@ -187,12 +172,12 @@ const oe = "m_QBtq_buttons", re = "m_QBtq_container", se = "m_QBtq_gpt", ie = "m
187
172
  mobileOverlay: pe,
188
173
  open: we,
189
174
  outer: ge,
190
- selectableIcon: ve,
191
- selected: fe,
175
+ selectableIcon: fe,
176
+ selected: ve,
192
177
  selectedIcon: ke,
193
178
  skip: _e,
194
- sub: be,
195
- subContainer: Ce,
179
+ sub: Ce,
180
+ subContainer: be,
196
181
  subTitle: xe
197
182
  }, V = [
198
183
  {
@@ -226,7 +211,7 @@ const oe = "m_QBtq_buttons", re = "m_QBtq_container", se = "m_QBtq_gpt", ie = "m
226
211
  icon: /* @__PURE__ */ e(R, {})
227
212
  }
228
213
  ];
229
- function d(c, o) {
214
+ function h(c, o) {
230
215
  return o ? c.replace(o, "") : c;
231
216
  }
232
217
  function Be({
@@ -237,14 +222,14 @@ function Be({
237
222
  waitForMount: l
238
223
  }) {
239
224
  const w = G();
240
- return /* @__PURE__ */ e("div", { className: b(t.sub, t.outer), children: /* @__PURE__ */ e(z, { className: t.subContainer, as: "ul", children: c.map(
241
- ({ title: v, url: C, icon: x, selectedIcon: B, tag: M, tagVariant: f = "success" }, u) => {
242
- const N = typeof window < "u" && window.location.origin || "http://example.com", k = new URL(C, N), _ = (!l || w) && k.origin === N && k.pathname === a;
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;
243
228
  return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
244
229
  o,
245
230
  {
246
- href: d(C, p),
247
- className: b({
231
+ href: h(b, p),
232
+ className: C({
248
233
  [t.selectableIcon]: B,
249
234
  [t.selected]: _
250
235
  }),
@@ -254,8 +239,8 @@ function Be({
254
239
  /* @__PURE__ */ e("span", { className: t.icon, children: x })
255
240
  ] }),
256
241
  /* @__PURE__ */ i("span", { className: t.subTitle, children: [
257
- v,
258
- M && /* @__PURE__ */ e(Y, { variant: f, icon: !1 })
242
+ f,
243
+ S && /* @__PURE__ */ e(Y, { variant: v, icon: !1 })
259
244
  ] })
260
245
  ]
261
246
  }
@@ -263,7 +248,7 @@ function Be({
263
248
  }
264
249
  ) }) });
265
250
  }
266
- function Ee({
251
+ function Oe({
267
252
  subItems: c,
268
253
  children: o,
269
254
  notifications: p = [],
@@ -271,23 +256,23 @@ function Ee({
271
256
  link: a = "a",
272
257
  host: l = "https://www.highcharts.com",
273
258
  pathname: w,
274
- topCssVariable: v
259
+ topCssVariable: f
275
260
  }) {
276
- const C = !!w;
261
+ const b = !!w;
277
262
  w = w || (typeof window < "u" ? window.location.pathname : "");
278
- const x = Q("(max-width: 374px)"), B = Q("(max-width: 849px)"), M = Q("(min-width: 850px) and (max-width: 999px)"), f = U(null), [u, N] = T(!1), [k, _] = T([]);
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([]);
279
264
  H(() => {
280
265
  let r = window.scrollY, n = -82, s = n;
281
- v && document.documentElement.style.setProperty("--header-top", `${n}px`);
266
+ f && document.documentElement.style.setProperty("--header-top", `${n}px`);
282
267
  const g = () => {
283
- const S = window.scrollY, q = S - r;
284
- n -= q, n < -82 ? n = -82 : n > 0 && (n = 0), f.current && n !== s && (f.current.style.top = `${n}px`, v && document.documentElement.style.setProperty(
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(
285
270
  "--header-top",
286
271
  `${n}px`
287
- )), r = S, s = n;
272
+ )), r = q, s = n;
288
273
  };
289
274
  return window.addEventListener("scroll", g), () => window.removeEventListener("scroll", g);
290
- }, [v]), H(() => {
275
+ }, [f]), H(() => {
291
276
  if (p.length) {
292
277
  const r = localStorage.getItem("notifications");
293
278
  if (r) {
@@ -301,12 +286,12 @@ function Ee({
301
286
  _(p);
302
287
  }
303
288
  }, [p]);
304
- const L = (r) => {
289
+ const y = (r) => {
305
290
  if (r.preventDefault(), !(r.nativeEvent instanceof KeyboardEvent) || r.nativeEvent.code === "Enter" || r.nativeEvent.code === "Space") {
306
291
  const n = document.querySelector("main");
307
292
  n && (n.scrollIntoView(), n.getAttribute("tabindex") !== "-1" && n.setAttribute("tabindex", "-1"), n.focus());
308
293
  }
309
- }, y = () => {
294
+ }, L = () => {
310
295
  N(!u);
311
296
  }, A = (r) => {
312
297
  _(k.filter((s) => !s.id || s.id !== r));
@@ -322,30 +307,30 @@ function Ee({
322
307
  })
323
308
  );
324
309
  };
325
- return /* @__PURE__ */ e(F, { children: /* @__PURE__ */ i("header", { className: t.header, ref: f, children: [
310
+ return /* @__PURE__ */ e(F, { children: /* @__PURE__ */ i("header", { className: t.header, ref: v, children: [
326
311
  k?.map(
327
- ({ id: r, title: n, description: s, variant: g, closable: S }, q) => /* @__PURE__ */ e(
312
+ ({ id: r, title: n, description: s, variant: g, closable: q }, M) => /* @__PURE__ */ e(
328
313
  D,
329
314
  {
330
315
  description: s,
331
316
  variant: g,
332
- closable: S,
317
+ closable: q,
333
318
  onClose: () => A(r),
334
319
  children: n
335
320
  },
336
- q
321
+ M
337
322
  )
338
323
  ),
339
- /* @__PURE__ */ e("div", { className: b(t.main, t.outer), children: /* @__PURE__ */ i(z, { as: "nav", className: t.container, children: [
324
+ /* @__PURE__ */ e("div", { className: C(t.main, t.outer), children: /* @__PURE__ */ i(z, { as: "nav", className: t.container, children: [
340
325
  /* @__PURE__ */ e(
341
- h,
326
+ d,
342
327
  {
343
328
  as: "a",
344
329
  className: t.skip,
345
330
  size: 500,
346
331
  tabIndex: "0",
347
- onClick: L,
348
- onKeyPress: L,
332
+ onClick: y,
333
+ onKeyPress: y,
349
334
  children: "Skip to content"
350
335
  }
351
336
  ),
@@ -353,54 +338,54 @@ function Ee({
353
338
  a,
354
339
  {
355
340
  className: t.logo,
356
- href: d("https://www.highcharts.com/", l),
357
- children: /* @__PURE__ */ e(I, { showText: !M && !x })
341
+ href: h("https://www.highcharts.com/", l),
342
+ children: /* @__PURE__ */ e(I, { showText: !S && !x })
358
343
  }
359
344
  ),
360
345
  /* @__PURE__ */ e("ul", { className: t.links, children: V.map(({ title: r, url: n }, s) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
361
- h,
346
+ d,
362
347
  {
363
348
  variant: "plain",
364
349
  size: 300,
365
350
  as: a,
366
- href: d(n, l),
351
+ href: h(n, l),
367
352
  children: r
368
353
  }
369
354
  ) }, s)) }),
370
355
  /* @__PURE__ */ i("div", { className: t.buttons, children: [
371
356
  /* @__PURE__ */ i(
372
- h,
357
+ d,
373
358
  {
374
359
  variant: "transparent",
375
360
  as: a,
376
- href: d(
361
+ href: h(
377
362
  "https://www.highcharts.com/chat/gpt/",
378
363
  l
379
364
  ),
380
365
  children: [
381
366
  /* @__PURE__ */ e("span", { className: t.gpt, children: "Highcharts GPT" }),
382
- /* @__PURE__ */ e(P, {})
367
+ /* @__PURE__ */ e(j, {})
383
368
  ]
384
369
  }
385
370
  ),
386
- /* @__PURE__ */ e(h, { variant: "transparent", "aria-label": "Search", children: /* @__PURE__ */ e(j, {}) }),
371
+ /* @__PURE__ */ e(P, {}),
387
372
  /* @__PURE__ */ e(W, {}),
388
373
  /* @__PURE__ */ e(
389
- h,
374
+ d,
390
375
  {
391
376
  variant: "brand",
392
377
  as: a,
393
- href: d("https://shop.highcharts.com/account", l),
378
+ href: h("https://shop.highcharts.com/account", l),
394
379
  "aria-label": "Login",
395
380
  children: /* @__PURE__ */ e(O, {})
396
381
  }
397
382
  ),
398
383
  /* @__PURE__ */ i(
399
- h,
384
+ d,
400
385
  {
401
386
  variant: "success",
402
387
  as: a,
403
- href: d(
388
+ href: h(
404
389
  "https://www.highcharts.com/download/",
405
390
  l
406
391
  ),
@@ -411,11 +396,11 @@ function Ee({
411
396
  }
412
397
  ),
413
398
  /* @__PURE__ */ i(
414
- h,
399
+ d,
415
400
  {
416
401
  variant: u ? "white" : "transparent",
417
402
  className: t.menu,
418
- onClick: y,
403
+ onClick: L,
419
404
  children: [
420
405
  u ? "Close" : "Menu",
421
406
  u ? /* @__PURE__ */ e($, {}) : /* @__PURE__ */ e(ee, {})
@@ -431,7 +416,7 @@ function Ee({
431
416
  link: a,
432
417
  host: l,
433
418
  pathname: w,
434
- waitForMount: !C
419
+ waitForMount: !b
435
420
  }
436
421
  ),
437
422
  o,
@@ -439,14 +424,14 @@ function Ee({
439
424
  /* @__PURE__ */ e(
440
425
  "div",
441
426
  {
442
- className: b(t.mobileOverlay, { [t.open]: u }),
443
- onClick: y
427
+ className: C(t.mobileOverlay, { [t.open]: u }),
428
+ onClick: L
444
429
  }
445
430
  ),
446
431
  /* @__PURE__ */ i(
447
432
  "nav",
448
433
  {
449
- className: b(t.mobile, {
434
+ className: C(t.mobile, {
450
435
  [t.open]: u
451
436
  }),
452
437
  children: [
@@ -455,38 +440,38 @@ function Ee({
455
440
  a,
456
441
  {
457
442
  className: t.logo,
458
- href: d("https://www.highcharts.com/", l),
443
+ href: h("https://www.highcharts.com/", l),
459
444
  children: /* @__PURE__ */ e(I, { showText: !x })
460
445
  }
461
446
  ),
462
447
  /* @__PURE__ */ i("div", { className: t.buttons, children: [
463
448
  /* @__PURE__ */ i(
464
- h,
449
+ d,
465
450
  {
466
451
  variant: "transparent",
467
452
  as: a,
468
- href: d(
453
+ href: h(
469
454
  "https://www.highcharts.com/chat/gpt/",
470
455
  l
471
456
  ),
472
457
  children: [
473
458
  /* @__PURE__ */ e("span", { className: t.gpt, children: "Highcharts GPT" }),
474
- /* @__PURE__ */ e(P, {})
459
+ /* @__PURE__ */ e(j, {})
475
460
  ]
476
461
  }
477
462
  ),
478
- /* @__PURE__ */ e(h, { variant: "transparent", "aria-label": "Search", children: /* @__PURE__ */ e(j, {}) }),
463
+ /* @__PURE__ */ e(P, {}),
479
464
  /* @__PURE__ */ e(W, {})
480
465
  ] })
481
466
  ] }),
482
467
  /* @__PURE__ */ i("div", { className: t.buttons, children: [
483
468
  /* @__PURE__ */ i(
484
- h,
469
+ d,
485
470
  {
486
471
  variant: "brand",
487
472
  fullWidth: !0,
488
473
  as: a,
489
- href: d(
474
+ href: h(
490
475
  "https://shop.highcharts.com/account",
491
476
  l
492
477
  ),
@@ -497,12 +482,12 @@ function Ee({
497
482
  }
498
483
  ),
499
484
  /* @__PURE__ */ i(
500
- h,
485
+ d,
501
486
  {
502
487
  variant: "success",
503
488
  fullWidth: !0,
504
489
  as: a,
505
- href: d(
490
+ href: h(
506
491
  "https://www.highcharts.com/download/",
507
492
  l
508
493
  ),
@@ -514,13 +499,13 @@ function Ee({
514
499
  )
515
500
  ] }),
516
501
  /* @__PURE__ */ e("ul", { className: t.links, children: V.map(({ title: r, url: n, icon: s }, g) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
517
- h,
502
+ d,
518
503
  {
519
504
  variant: "plain",
520
505
  size: 500,
521
506
  fullWidth: !0,
522
507
  as: a,
523
- href: d(n, l),
508
+ href: h(n, l),
524
509
  children: [
525
510
  s,
526
511
  r
@@ -534,6 +519,6 @@ function Ee({
534
519
  ] }) });
535
520
  }
536
521
  export {
537
- Ee as Header,
522
+ Oe as Header,
538
523
  Be as SubHeader
539
524
  };
@@ -6,7 +6,7 @@ import { C as Ue } from "../../Check-Cm4roSEj.js";
6
6
  import { _ as yt } from "../../extends-hS2Bh-Yp.js";
7
7
  import { c as Ze } from "../../clsx-OuTLNxxd.js";
8
8
  import { Button as Je } from "../Button/index.js";
9
- import { u as Mt, P as ft, c as oe, a as bt, b as tn, d as en, e as nn, f as st, g as re, h as on, i as rn, R as sn, j as cn, k as an, F as ln, D as fn } from "../../index-DdHkr4BN.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";
10
10
  import * as un from "react-dom";
11
11
  var dn = function(e) {
12
12
  return /* @__PURE__ */ w("svg", yt({
@@ -0,0 +1 @@
1
+ export declare function Search(): import("react/jsx-runtime").JSX.Element;